From de7b4dbb2749d8ff95cbc177dcbbffa7426dfa8b Mon Sep 17 00:00:00 2001 From: mohammad-starkware <130282237+MohammadNassar1@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:50:15 +0300 Subject: [PATCH] test(mempool): fix change mempool_state to mempool_content (#338) --- crates/mempool/src/mempool_test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/mempool/src/mempool_test.rs b/crates/mempool/src/mempool_test.rs index 85842e0713..43c27fa715 100644 --- a/crates/mempool/src/mempool_test.rs +++ b/crates/mempool/src/mempool_test.rs @@ -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(); @@ -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); }