Skip to content

Commit

Permalink
weird lints
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikspatil024 committed Mar 16, 2023
1 parent 06ccf84 commit 3fc3be3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/tx_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ func TestTransactionGapFilling(t *testing.T) {
if queued != 1 {
t.Fatalf("queued transactions mismatched: have %d, want %d", queued, 1)
}

if err := validateEvents(events, 1); err != nil {
t.Fatalf("original event firing failed: %v", err)
}
Expand Down Expand Up @@ -1931,6 +1932,7 @@ func TestTransactionPoolUnderpricing(t *testing.T) {
if queued != 2 {
t.Fatalf("queued transactions mismatched: have %d, want %d", queued, 2)
}

if err := validateEvents(events, 1); err != nil {
t.Fatalf("additional event firing failed: %v", err)
}
Expand Down Expand Up @@ -2097,6 +2099,7 @@ func TestTransactionPoolUnderpricingDynamicFee(t *testing.T) {
if err := pool.AddRemote(tx); err != nil { // +K1:2, -K0:1 => Pend K0:0 K1:0, K2:0; Que K1:2
t.Fatalf("failed to add well priced transaction: %v", err)
}

tx = dynamicFeeTx(3, 100000, big.NewInt(4), big.NewInt(1), keys[1])
if err := pool.AddRemote(tx); err != nil { // +K1:3, -K1:0 => Pend K0:0 K2:0; Que K1:2 K1:3
t.Fatalf("failed to add well priced transaction: %v", err)
Expand All @@ -2108,6 +2111,7 @@ func TestTransactionPoolUnderpricingDynamicFee(t *testing.T) {
if queued != 2 {
t.Fatalf("queued transactions mismatched: have %d, want %d", queued, 2)
}

if err := validateEvents(events, 1); err != nil {
t.Fatalf("additional event firing failed: %v", err)
}
Expand Down

0 comments on commit 3fc3be3

Please sign in to comment.