From 49e3688b7936816341004516d501ba22a07487ff Mon Sep 17 00:00:00 2001 From: JayT106 Date: Fri, 25 Feb 2022 23:33:28 +0800 Subject: [PATCH] fix syncAny test (#8001) Co-authored-by: Sam Kleinman --- internal/statesync/syncer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/statesync/syncer_test.go b/internal/statesync/syncer_test.go index 7619a718e..b199fc982 100644 --- a/internal/statesync/syncer_test.go +++ b/internal/statesync/syncer_test.go @@ -173,7 +173,7 @@ func TestSyncer_SyncAny(t *testing.T) { // beginning. We also wait for a little while, to exercise the retry logic in fetchChunks(). connSnapshot.On("ApplySnapshotChunk", mock.Anything, abci.RequestApplySnapshotChunk{ Index: 2, Chunk: []byte{1, 1, 2}, - }).Once().Run(func(args mock.Arguments) { time.Sleep(2 * time.Second) }).Return( + }).Once().Run(func(args mock.Arguments) { time.Sleep(1 * time.Second) }).Return( &abci.ResponseApplySnapshotChunk{ Result: abci.ResponseApplySnapshotChunk_RETRY_SNAPSHOT, RefetchChunks: []uint32{1},