]> git.proxmox.com Git - rustc.git/blobdiff - vendor/crossbeam-utils/tests/wait_group.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / vendor / crossbeam-utils / tests / wait_group.rs
index b6c2a2437c7fdb1c526ea292351f71beb3f8a33a..0ec4a729ca76b6b7adf5f897b520dbc0913a1943 100644 (file)
@@ -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();