accounts/abi/bind/backends: fix goroutine leak in unit test (#27705)

pull/27732/head
Yurie 1 year ago committed by GitHub
parent 34d5072159
commit 00408f7479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      accounts/abi/bind/backends/simulated_test.go

@ -161,6 +161,7 @@ func TestAdjustTime(t *testing.T) {
func TestNewAdjustTimeFail(t *testing.T) {
testAddr := crypto.PubkeyToAddress(testKey.PublicKey)
sim := simTestBackend(testAddr)
defer sim.blockchain.Stop()
// Create tx and send
head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough

Loading…
Cancel
Save