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: Nikita Strygin <[email protected]>
  • Loading branch information
DCNick3 committed Mar 4, 2024
1 parent 02e5fe8 commit f0e6727
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 @@ -622,13 +622,13 @@ mod tests {
queue
.push(accepted_tx("alice@wonderland", &alice_key), &wsv)
.expect("Failed to push tx into queue");
thread::sleep(Duration::from_millis(100));
thread::sleep(Duration::from_millis(201));
}

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(310));
assert_eq!(
queue
.collect_transactions_for_block(&wsv, max_txs_in_block)
Expand Down

0 comments on commit f0e6727

Please sign in to comment.