Skip to content

Commit

Permalink
fix: Flaky test_single_worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Feb 9, 2023
1 parent a286536 commit aab7232
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ async fn test_single_worker() -> Result<()> {
for _ in 0..3 {
assert_success(add_env_task(shared, "sleep 0.1").await?);
}
// Wait a second. Since the tasks are run sequentially, the timings are sometimes a bit tight.
sleep_ms(1000).await;

// Wait for the last task to finish.
wait_for_task_condition(shared, 2, |task| task.is_done()).await?;
Expand Down

0 comments on commit aab7232

Please sign in to comment.