We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cb0eb5 commit 375087fCopy full SHA for 375087f
1 file changed
tests/hasher_unwind.rs
@@ -146,7 +146,13 @@ fn hashmap_reserve_survives_panicking_build_hasher_inner(count: usize) {
146
#[test]
147
fn hashmap_reserve_survives_panicking_build_hasher() {
148
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);
+ if cfg!(miri) {
+ 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
156
157
}
158
0 commit comments