diff --git a/crates/mempool/src/mempool_test.rs b/crates/mempool/src/mempool_test.rs index 581bf8e434..6c74962588 100644 --- a/crates/mempool/src/mempool_test.rs +++ b/crates/mempool/src/mempool_test.rs @@ -316,7 +316,7 @@ fn test_add_tx(mut mempool: Mempool) { } #[rstest] -fn test_add_tx_multi_nonce_success(mut mempool: Mempool) { +fn test_add_tx_correctly_places_txs_in_queue_and_pool(mut mempool: Mempool) { // Setup. let input_address_0_nonce_0 = add_tx_input!(tx_hash: 1, address: "0x0", tx_nonce: 0, account_nonce: 0); @@ -442,27 +442,6 @@ fn test_add_tx_tip_priority_over_tx_hash(mut mempool: Mempool) { expected_mempool_content.assert_eq(&mempool); } -#[rstest] -fn test_add_tx_sequential_nonces(mut mempool: Mempool) { - // Setup. - let input_nonce_0 = add_tx_input!(tx_hash: 0, tx_nonce: 0, account_nonce: 0); - let input_nonce_1 = add_tx_input!(tx_hash: 1, tx_nonce: 1, account_nonce: 0); - - // Test. - for input in [&input_nonce_0, &input_nonce_1] { - add_tx(&mut mempool, input); - } - - // Assert: only eligible transaction appears in the queue. - let expected_queue_txs = [TransactionReference::new(&input_nonce_0.tx)]; - let expected_pool_txs = [input_nonce_0.tx, input_nonce_1.tx]; - let expected_mempool_content = MempoolContentBuilder::new() - .with_pool(expected_pool_txs) - .with_priority_queue(expected_queue_txs) - .build(); - expected_mempool_content.assert_eq(&mempool); -} - #[rstest] fn test_add_tx_fills_nonce_gap(mut mempool: Mempool) { // Setup.