Unverified Commit f98cabad authored by ucwong's avatar ucwong Committed by GitHub

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

parent 0c359e4b
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment