Skip to content

Commit

Permalink
core: fix the transfer test and make deterministic (#2775)
Browse files Browse the repository at this point in the history
  • Loading branch information
emailtovamos authored Nov 28, 2024
1 parent c49ea92 commit c63cd28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/txpool/legacypool/legacypool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2274,10 +2274,11 @@ func TestTransferTransactions(t *testing.T) {
pool.addToOverflowPool([]*types.Transaction{tx2}, true)
assert.Equal(t, uint64(1), pool.statsOverflowPool(), "OverflowPool size unexpected")
<-pool.requestPromoteExecutables(newAccountSet(pool.signer, from))
time.Sleep(1 * time.Second)
pending, queue = pool.Stats()

assert.Equal(t, 0, pending, "pending transactions mismatched")
assert.Equal(t, 1, queue, "queued transactions mismatched")
assert.Equal(t, 1, pending, "pending transactions mismatched")
assert.Equal(t, 0, queue, "queued transactions mismatched")
assert.Equal(t, uint64(0), pool.statsOverflowPool(), "OverflowPool size unexpected")

tx3 := dynamicFeeTx(0, 100000, big.NewInt(3), big.NewInt(2), keys[2])
Expand Down

0 comments on commit c63cd28

Please sign in to comment.