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

This commit is contained in:
Yurie 2023-07-15 23:33:46 +09:00 committed by devopsbo3
parent 041d64c8a0
commit 93400108c2

View file

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