mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/fetcher: plug goroutine-leak in test
This commit is contained in:
parent
5e52d8dc8b
commit
b186dedd8d
1 changed files with 4 additions and 2 deletions
|
|
@ -2007,8 +2007,10 @@ func TestTransactionForgotten(t *testing.T) {
|
|||
},
|
||||
func(string, []common.Hash) error { return nil },
|
||||
)
|
||||
go fetcher.loop()
|
||||
// Create a TX which is 5 minutes old, and one which is recent
|
||||
fetcher.Start()
|
||||
defer fetcher.Stop()
|
||||
// Create a TXuno
|
||||
//which is 5 minutes old, and one which is recent
|
||||
tx1 := types.NewTx(&types.LegacyTx{Nonce: 0})
|
||||
tx1.SetTime(time.Now().Add(-maxTxUnderpricedTimeout - 1*time.Second))
|
||||
tx2 := types.NewTx(&types.LegacyTx{Nonce: 1})
|
||||
|
|
|
|||
Loading…
Reference in a new issue