Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 384c205

Browse files
committedJun 17, 2024
Revert panic_safe test changes
The changes made only a limited improvement for the current small miri coverage and in general test coverage of the sort implementations. But they exploded test times from ~13s to ~240s, which is not deemed worth it.
1 parent 78eaad5 commit 384c205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎alloc/src/slice/tests.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ fn panic_safe() {
197197

198198
let mut rng = test_rng();
199199

200-
let lens = if cfg!(miri) { (1..10).chain(30..36) } else { (1..20).chain(70..MAX_LEN) };
200+
// Miri is too slow (but still need to `chain` to make the types match)
201+
let lens = if cfg!(miri) { (1..10).chain(0..0) } else { (1..20).chain(70..MAX_LEN) };
201202
let moduli: &[u32] = if cfg!(miri) { &[5] } else { &[5, 20, 50] };
202203

203204
for len in lens {

0 commit comments

Comments
 (0)
Failed to load comments.