Skip to content

Commit

Permalink
test(mempool): fix change mempool_state to mempool_content (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadNassar1 authored Aug 6, 2024
1 parent 8a94052 commit de7b4db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/mempool/src/mempool_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ fn test_flow_send_same_nonce_tx_after_previous_not_included() {

let queue_txs = [TransactionReference::new(&tx_nonce3)];
let pool_txs = [&tx_nonce3, &tx_input_nonce4.tx, &tx_nonce5].map(|tx| tx.clone());
let mut mempool: Mempool = MempoolState::new(pool_txs, queue_txs).into();
let mut mempool: Mempool = MempoolContent::new(pool_txs, queue_txs).into();

// Test.
let txs = mempool.get_txs(2).unwrap();
Expand All @@ -776,6 +776,6 @@ fn test_flow_send_same_nonce_tx_after_previous_not_included() {
// Assert.
assert_eq!(txs, &[tx_input_nonce4.tx]);
let expected_queue_txs = [TransactionReference::new(&tx_nonce5)];
let expected_mempool_state = MempoolState::with_queue(expected_queue_txs);
expected_mempool_state.assert_eq_queue_state(&mempool);
let expected_mempool_content = MempoolContent::with_queue(expected_queue_txs);
expected_mempool_content.assert_eq_queue_content(&mempool);
}

0 comments on commit de7b4db

Please sign in to comment.