mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/fetcher: fix test
This commit is contained in:
parent
80551de81b
commit
296e67d8c6
1 changed files with 1 additions and 1 deletions
|
|
@ -2009,7 +2009,7 @@ func TestTransactionForgotten(t *testing.T) {
|
||||||
)
|
)
|
||||||
go fetcher.loop()
|
go fetcher.loop()
|
||||||
tx1 := types.NewTransaction(0, common.Address{}, common.Big0, 0, common.Big0, nil)
|
tx1 := types.NewTransaction(0, common.Address{}, common.Big0, 0, common.Big0, nil)
|
||||||
tx1.SetTime(time.Now().Add(-maxTxUnderpricedTimeout))
|
tx1.SetTime(time.Now().Add(-maxTxUnderpricedTimeout - 1*time.Second))
|
||||||
tx2 := types.NewTransaction(1, common.Address{}, common.Big0, 0, common.Big0, nil)
|
tx2 := types.NewTransaction(1, common.Address{}, common.Big0, 0, common.Big0, nil)
|
||||||
if fetcher.isKnownUnderpriced(tx1.Hash()) {
|
if fetcher.isKnownUnderpriced(tx1.Hash()) {
|
||||||
t.Fatal("unknown hash can not be underpriced")
|
t.Fatal("unknown hash can not be underpriced")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue