Skip to content

Commit 4e0f1d1

Browse files
committed
Fix miri test failure
1 parent fad5a6e commit 4e0f1d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crossbeam-channel/tests/zero.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ fn fairness() {
483483
}
484484

485485
#[test]
486+
#[cfg_attr(miri, ignore)] // Miri is too slow
486487
fn fairness_duplicates() {
487488
#[cfg(miri)]
488489
const COUNT: usize = 50;

crossbeam-utils/tests/wait_group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn wait() {
3636
}
3737

3838
#[test]
39-
#[cfg(not(miri))] // this test makes timing assumptions, but Miri is so slow it violates them
39+
#[cfg_attr(miri, ignore)] // this test makes timing assumptions, but Miri is so slow it violates them
4040
fn wait_and_drop() {
4141
let wg = WaitGroup::new();
4242
let (tx, rx) = mpsc::channel();

0 commit comments

Comments
 (0)