Browse Source

fix syncAny test (#8001)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
pull/8008/head
JayT106 2 years ago
committed by GitHub
parent
commit
49e3688b79
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/statesync/syncer_test.go

+ 1
- 1
internal/statesync/syncer_test.go View File

@ -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},


Loading…
Cancel
Save