Skip to content

Commit

Permalink
Update txs/cache_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Fasching <5011972+fasmat@users.noreply.github.com>
  • Loading branch information
acud and fasmat authored Jul 22, 2024
1 parent 0ee41bb commit a758c83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions txs/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,8 @@ func TestCache_Account_ReplaceByFee(t *testing.T) {
rbfTx := newMeshTX(t, ta.nonce, ta.signer, defaultAmount+500, now.Add(time.Second*time.Duration(10)))
rbfTx.GasPrice = defaultFee + 1
rbfTx.MaxGas = 1
if err := tc.Cache.Add(context.Background(), tc.db, &rbfTx.Transaction,
now.Add(time.Second*time.Duration(20)), false); err != nil {
t.Fatal(err)
}
err := tc.Cache.Add(context.Background(), tc.db, &rbfTx.Transaction, now.Add(time.Second*time.Duration(20)), false)
require.NoError(t, err)

checkTX(t, tc.Cache, rbfTx.ID, 0, types.EmptyBlockID)
checkNoTX(t, tc.Cache, mtx.ID)
Expand Down

0 comments on commit a758c83

Please sign in to comment.