From f98cabad7cea07a96f80c7b68efc10ff08d483f4 Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 2 Apr 2020 22:04:45 +0800 Subject: [PATCH] core: add missing Timer.Stop call in TestLogReorgs (#20870) --- core/blockchain_test.go | 1 + 1 file changed, 1 insertion(+) 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: