Skip to content

Commit

Permalink
UT: random failure of TestSnapSyncWithBlobs
Browse files Browse the repository at this point in the history
this case failed randomly in github CI, the ratio of around 20%
but can not be reproduced locally
  go test -p 1 -v -run TestSnapSyncWithBlobs -count 100
Add extra wait time for snapsync to have a try...
  • Loading branch information
zzzckck committed Jun 19, 2024
1 parent be0fbfb commit 85bebec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ func testChainSyncWithBlobs(t *testing.T, mode downloader.SyncMode, preCancunBlk
})
// Wait a bit for the above handlers to start
time.Sleep(250 * time.Millisecond)
if downloader.SnapSync == mode {
// Wait extra 250ms for snap sync, as snap sync will take more round of p2p message
time.Sleep(250 * time.Millisecond)
}

// Check that snap sync was disabled
op := peerToSyncOp(mode, empty.handler.peers.peerWithHighestTD())
Expand Down

0 comments on commit 85bebec

Please sign in to comment.