Skip to content

Commit 375087f

Browse files
committed
Reduce test runtime on Miri
1 parent 6cb0eb5 commit 375087f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/hasher_unwind.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,13 @@ fn hashmap_reserve_survives_panicking_build_hasher_inner(count: usize) {
146146
#[test]
147147
fn hashmap_reserve_survives_panicking_build_hasher() {
148148
let _guard = TEST_LOCK.lock().unwrap_or_else(|e| e.into_inner());
149-
for i in 0..111 {
150-
hashmap_reserve_survives_panicking_build_hasher_inner(i);
149+
if cfg!(miri) {
150+
for i in [0, 50, 110] {
151+
hashmap_reserve_survives_panicking_build_hasher_inner(i);
152+
}
153+
} else {
154+
for i in 0..111 {
155+
hashmap_reserve_survives_panicking_build_hasher_inner(i);
156+
}
151157
}
152158
}

0 commit comments

Comments
 (0)