Skip to content

Commit

Permalink
fix test call signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Apr 15, 2024
1 parent bf2e171 commit 410e35c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mempool/v1/mempool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func TestTxMempool_TxsAvailable(t *testing.T) {

// commit half the transactions and ensure we fire an event
txmp.Lock()
require.NoError(t, txmp.Update(1, rawTxs[:50], responses, nil, nil))
require.NoError(t, txmp.Update(1, rawTxs[:50], responses))
txmp.Unlock()
ensureTxFire()
ensureNoTxFire()
Expand Down Expand Up @@ -203,7 +203,7 @@ func TestTxMempool_Size(t *testing.T) {
}

txmp.Lock()
require.NoError(t, txmp.Update(1, rawTxs[:50], responses, nil, nil))
require.NoError(t, txmp.Update(1, rawTxs[:50], responses))
txmp.Unlock()

require.Equal(t, len(rawTxs)/2, txmp.Size())
Expand Down Expand Up @@ -298,7 +298,7 @@ func TestTxMempool_Flush(t *testing.T) {
}

txmp.Lock()
require.NoError(t, txmp.Update(1, rawTxs[:50], responses, nil, nil))
require.NoError(t, txmp.Update(1, rawTxs[:50], responses))
txmp.Unlock()

txmp.Flush()
Expand Down Expand Up @@ -503,7 +503,7 @@ func TestTxMempool_ConcurrentTxs(t *testing.T) {
}

txmp.Lock()
require.NoError(t, txmp.Update(height, reapedTxs, responses, nil, nil))
require.NoError(t, txmp.Update(height, reapedTxs, responses))
txmp.Unlock()

height++
Expand Down Expand Up @@ -551,7 +551,7 @@ func TestTxMempool_ExpiredTxs_Timestamp(t *testing.T) {
// Trigger an update so that pruning will occur.
txmp.Lock()
defer txmp.Unlock()
require.NoError(t, txmp.Update(txmp.height+1, nil, nil, nil, nil))
require.NoError(t, txmp.Update(txmp.height+1, nil, nil))

// All the transactions in the original set should have been purged.
for _, tx := range added1 {
Expand Down Expand Up @@ -588,7 +588,7 @@ func TestTxMempool_ExpiredTxs_NumBlocks(t *testing.T) {
}

txmp.Lock()
require.NoError(t, txmp.Update(txmp.height+1, reapedTxs, responses, nil, nil))
require.NoError(t, txmp.Update(txmp.height+1, reapedTxs, responses))
txmp.Unlock()

require.Equal(t, 95, txmp.Size())
Expand All @@ -612,7 +612,7 @@ func TestTxMempool_ExpiredTxs_NumBlocks(t *testing.T) {
}

txmp.Lock()
require.NoError(t, txmp.Update(txmp.height+10, reapedTxs, responses, nil, nil))
require.NoError(t, txmp.Update(txmp.height+10, reapedTxs, responses))
txmp.Unlock()

require.GreaterOrEqual(t, txmp.Size(), 45)
Expand Down

0 comments on commit 410e35c

Please sign in to comment.