mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-02 22:32:55 +00:00
accounts/abi/bind/backends: fix goroutine leak in unit test (#27705)
This commit is contained in:
parent
34d5072159
commit
00408f7479
1 changed files with 1 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ func TestAdjustTime(t *testing.T) {
|
||||||
func TestNewAdjustTimeFail(t *testing.T) {
|
func TestNewAdjustTimeFail(t *testing.T) {
|
||||||
testAddr := crypto.PubkeyToAddress(testKey.PublicKey)
|
testAddr := crypto.PubkeyToAddress(testKey.PublicKey)
|
||||||
sim := simTestBackend(testAddr)
|
sim := simTestBackend(testAddr)
|
||||||
|
defer sim.blockchain.Stop()
|
||||||
|
|
||||||
// Create tx and send
|
// Create tx and send
|
||||||
head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
|
head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue