core: add missing Timer.Stop call in TestLogReorgs (#20870)

pull/20875/head
ucwong 5 years ago committed by GitHub
parent 0c359e4b9a
commit f98cabad7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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:

Loading…
Cancel
Save