From 560a1ab4e0a786da5b2260d391ac761823cbac02 Mon Sep 17 00:00:00 2001 From: Nikita Strygin Date: Mon, 4 Mar 2024 15:58:18 +0300 Subject: [PATCH] [fix]: fix sleep times in get_available_txs_with_timeout Signed-off-by: Nikita Strygin --- core/src/queue.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/queue.rs b/core/src/queue.rs index 856e3cc3b41..1d3245aa665 100644 --- a/core/src/queue.rs +++ b/core/src/queue.rs @@ -628,7 +628,7 @@ mod tests { queue .push(accepted_tx("alice@wonderland", &alice_key), &wsv) .expect("Failed to push tx into queue"); - std::thread::sleep(Duration::from_millis(101)); + std::thread::sleep(Duration::from_millis(201)); assert_eq!( queue .collect_transactions_for_block(&wsv, max_txs_in_block) @@ -639,7 +639,7 @@ mod tests { queue .push(accepted_tx("alice@wonderland", &alice_key), &wsv) .expect("Failed to push tx into queue"); - std::thread::sleep(Duration::from_millis(210)); + std::thread::sleep(Duration::from_millis(310)); assert_eq!( queue .collect_transactions_for_block(&wsv, max_txs_in_block)