Skip to content

Commit

Permalink
Fix unstable test
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Jul 20, 2023
1 parent 85a08a8 commit eaf893d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mod tests {
let queue = TaskQueueBuilder::new().worker_count(1).finish();
for (i, tx) in (0..3).map(|i| (i, tx.clone())) {
queue.enqueue(move || {
thread::sleep(Duration::from_millis(30 - i * 10));
thread::sleep(Duration::from_millis(90 - i * 30));
let _ = tx.send(i);
});
}
Expand Down

0 comments on commit eaf893d

Please sign in to comment.