Skip to content

Commit

Permalink
eth: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Dec 18, 2024
1 parent fb61e65 commit 191699a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func testSnapSyncDisabling(t *testing.T, ethVer uint, snapVer uint) {
if err := empty.handler.downloader.BeaconSync(ethconfig.SnapSync, full.chain.CurrentBlock(), nil); err != nil {
t.Fatal("sync failed:", err)
}
empty.handler.enableSyncedFeatures()
time.Sleep(time.Second * 5) // Downloader internally has to wait a timer (3s) to be expired before exiting

if empty.handler.snapSync.Load() {
t.Fatalf("snap sync not disabled after successful synchronisation")
Expand Down

0 comments on commit 191699a

Please sign in to comment.