diff --git a/core/blockchain_test.go b/core/blockchain_test.go index f15ede449..665d20ec9 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -973,6 +973,7 @@ func TestLogReorgs(t *testing.T) { t.Fatalf("failed to insert forked chain: %v", err) } timeout := time.NewTimer(1 * time.Second) + defer timeout.Stop() select { case <-done: case <-timeout.C: