Skip to content

Commit

Permalink
[fix]: fix sleep times in get_available_txs_with_timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Shanin Roman <[email protected]>
  • Loading branch information
Erigara committed Mar 1, 2024
1 parent 4a311c5 commit 188e91b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 188e91b

Please sign in to comment.