Skip to content

Commit f01b4bf

Browse files
revert to 50 requests
1 parent 965443c commit f01b4bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugin/evm/vmtest/test_syncervm.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ func StateSyncToggleEnabledToDisabledTest(t *testing.T, testSetup *SyncTestSetup
127127
defer lock.Unlock()
128128

129129
reqCount++
130-
// Fail all requests after number 5 to interrupt the sync
131-
if reqCount > 5 {
130+
// Fail all requests after number 50 to interrupt the sync
131+
if reqCount > 50 {
132132
if err := syncerVM.AppRequestFailed(t.Context(), nodeID, requestID, commonEng.ErrTimeout); err != nil {
133133
panic(err)
134134
}
@@ -259,11 +259,11 @@ func VMShutdownWhileSyncingTest(t *testing.T, testSetup *SyncTestSetup) {
259259
defer lock.Unlock()
260260

261261
reqCount++
262-
// Shutdown the VM after 5 requests to interrupt the sync
263-
if reqCount == 5 {
262+
// Shutdown the VM after 50 requests to interrupt the sync
263+
if reqCount == 50 {
264264
// Note this verifies the VM shutdown does not time out while syncing.
265265
require.NoError(t, testSyncVMSetup.syncerVM.shutdownOnceSyncerVM.Shutdown(t.Context()))
266-
} else if reqCount < 5 {
266+
} else if reqCount < 50 {
267267
require.NoError(t, syncerVM.AppResponse(t.Context(), nodeID, requestID, response))
268268
}
269269
},

0 commit comments

Comments
 (0)