Skip to content

Commit

Permalink
test: unstable repeated task test
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed May 11, 2024
1 parent 36660c1 commit bf7d6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/runtime/src/repeated_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ mod tests {
tokio::time::sleep(Duration::from_millis(550)).await;
task.stop().await.unwrap();

assert_eq!(n.load(Ordering::Relaxed), 5);
assert!(n.load(Ordering::Relaxed) >= 3);
}

#[tokio::test]
Expand All @@ -221,6 +221,6 @@ mod tests {
tokio::time::sleep(Duration::from_millis(550)).await;
task.stop().await.unwrap();

assert_eq!(n.load(Ordering::Relaxed), 6);
assert!(n.load(Ordering::Relaxed) >= 4);
}
}

0 comments on commit bf7d6c9

Please sign in to comment.