From 9db49bdd7f3a9c20df521a3fd43d5fe525f8912d Mon Sep 17 00:00:00 2001 From: jsvisa Date: Fri, 12 Dec 2025 14:04:56 +0000 Subject: [PATCH] fix test Signed-off-by: jsvisa --- eth/downloader/downloader_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index b587d43216..f7b6b4d1c2 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -738,7 +738,7 @@ func testSyncProgress(t *testing.T, protocol uint, mode SyncMode) { // TestSkeletonResetAfterSetHead tests that the skeleton syncer is properly reset // when the chain is rewound using SetHead, preventing data inconsistency issues. func TestSkeletonResetAfterSetHead(t *testing.T) { - tester := newTester(t) + tester := newTester(t, ethconfig.SnapSync) defer tester.terminate() chain := testChainBase.shorten(800) @@ -749,7 +749,8 @@ func TestSkeletonResetAfterSetHead(t *testing.T) { } // Start beacon sync to populate the skeleton - if err := tester.downloader.BeaconSync(SnapSync, chain.blocks[len(chain.blocks)-1].Header(), nil); err != nil { + header := chain.blocks[400].Header() + if err := tester.downloader.BeaconSync(header, header); err != nil { t.Fatalf("Failed to start beacon sync: %v", err) } @@ -772,7 +773,7 @@ func TestSkeletonResetAfterSetHead(t *testing.T) { } // Verify we can start a new sync after reset - if err := tester.downloader.BeaconSync(SnapSync, chain.blocks[400].Header(), nil); err != nil { + if err := tester.downloader.BeaconSync(header, header); err != nil { t.Fatalf("Failed to start beacon sync after reset: %v", err) } }