Skip to content

Commit 8d562a4

Browse files
committed
core/txpool/legacypool: fix test
1 parent 2659e4a commit 8d562a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/txpool/legacypool/legacypool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,8 +2440,8 @@ func TestSetCodeTransactionsReorg(t *testing.T) {
24402440
t.Fatalf("failed to add with remote setcode transaction: %v", err)
24412441
}
24422442
// Try to add a transactions in
2443-
if err := pool.addRemoteSync(pricedTransaction(2, 100000, big.NewInt(1000), keyA)); !errors.Is(err, txpool.ErrAccountLimitExceeded) {
2444-
t.Fatalf("unexpected error %v, expecting %v", err, txpool.ErrAccountLimitExceeded)
2443+
if err := pool.addRemoteSync(pricedTransaction(2, 100000, big.NewInt(1000), keyA)); !errors.Is(err, ErrInflightTxLimitReached) {
2444+
t.Fatalf("unexpected error %v, expecting %v", err, ErrInflightTxLimitReached)
24452445
}
24462446
// Simulate the chain moving
24472447
blockchain.statedb.SetNonce(addrA, 2, tracing.NonceChangeAuthorization)

0 commit comments

Comments
 (0)