Explorar el Código

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

ucwong hace 5 años
padre
commit
f98cabad7c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      core/blockchain_test.go

+ 1 - 0
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: