Allow specifying MAX_EXCERPTS via an env variable in random tests

This commit is contained in:
Antonio Scandurra
2021-12-16 12:28:54 +01:00
parent 3e2f684545
commit ec39c9d335
7 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -1021,7 +1021,7 @@ mod tests {
let buffer = cx.update(|cx| {
if rng.gen() {
MultiBuffer::build_random(rng.gen_range(1..=5), &mut rng, cx)
MultiBuffer::build_random(&mut rng, cx)
} else {
let len = rng.gen_range(0..10);
let text = RandomCharIter::new(&mut rng).take(len).collect::<String>();