Skip to content

Commit 0ebb15c

Browse files
committed
fix windows failing test
1 parent b375b9b commit 0ebb15c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

txpool/tx_pool_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ func TestTxPoolMetrics(t *testing.T) {
272272
"source": "remote",
273273
"type": "Legacy",
274274
})
275-
pool.options.MaxLifetime = 0
275+
tx4Obj := pool.all.mapByID[tx4.ID()]
276+
tx4Obj.timeAdded -= int64(pool.options.MaxLifetime) * 2
276277
_, washed, err := pool.wash(pool.repo.BestBlockSummary(), false)
277278
require.NoError(t, err)
278279
require.Equal(t, 1, washed)

0 commit comments

Comments
 (0)