Skip to content

Commit

Permalink
Fix flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Oct 14, 2024
1 parent ab5e940 commit 5a752bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/services/src/async_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ mod tests {

// Then
while broadcast_receiver.recv().await.is_ok() {}
tokio::task::yield_now().await;
assert!(instant.elapsed() <= Duration::from_secs(2));
let duration = Duration::from_nanos(heavy_task_processor.metric.busy.get());
assert_eq!(duration.as_secs(), 0);
Expand Down

0 comments on commit 5a752bc

Please sign in to comment.