aboutsummaryrefslogtreecommitdiff
path: root/tests/wait_group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wait_group.rs')
-rw-r--r--tests/wait_group.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/wait_group.rs b/tests/wait_group.rs
index b6c2a24..0ec4a72 100644
--- a/tests/wait_group.rs
+++ b/tests/wait_group.rs
@@ -36,6 +36,7 @@ fn wait() {
}
#[test]
+#[cfg_attr(miri, ignore)] // this test makes timing assumptions, but Miri is so slow it violates them
fn wait_and_drop() {
let wg = WaitGroup::new();
let (tx, rx) = mpsc::channel();
@@ -51,8 +52,8 @@ fn wait_and_drop() {
});
}
- // At this point, all spawned threads should be sleeping, so we shouldn't get anything from the
- // channel.
+ // At this point, all spawned threads should be in `thread::sleep`, so we shouldn't get anything
+ // from the channel.
assert!(rx.try_recv().is_err());
wg.wait();