Skip to content

Commit 7819a2f

Browse files
authored
Merge pull request #1335 from CortexFoundation/dev
downloader test fix
2 parents 55f1184 + f613166 commit 7819a2f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ctxc/downloader/downloader_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ func TestBoundedHeavyForkedSync64Full(t *testing.T) { testBoundedHeavyForkedSync
722722
func TestBoundedHeavyForkedSync64Fast(t *testing.T) { testBoundedHeavyForkedSync(t, 64, FastSync) }
723723

724724
func testBoundedHeavyForkedSync(t *testing.T, protocol int, mode SyncMode) {
725-
t.Parallel()
726725
tester := newTester()
726+
defer tester.terminate()
727727

728728
// Create a long enough forked chain
729729
chainA := testChainForkLightA
@@ -741,7 +741,6 @@ func testBoundedHeavyForkedSync(t *testing.T, protocol int, mode SyncMode) {
741741
if err := tester.sync("heavy-rewriter", nil, mode); err != errInvalidAncestor {
742742
t.Fatalf("sync failure mismatch: have %v, want %v", err, errInvalidAncestor)
743743
}
744-
tester.terminate()
745744
}
746745

747746
// Tests that an inactive downloader will not accept incoming block headers and

0 commit comments

Comments
 (0)