core | add missing timer.Stop() call to blockchain test

This commit is contained in:
ucwong 2020-04-02 11:25:48 +00:00
parent 66ed58bfcc
commit 30c709333b

View file

@ -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: