Skip to content

Commit fc9e074

Browse files
committed
Reduce the test so travis is happy.
1 parent b7376a2 commit fc9e074

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tests.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -606,14 +606,12 @@ struct JsonParser;
606606
#[test]
607607
fn no_stack_overflow_multiple_nested_blocks() {
608608
let mut input: String = "{{".into();
609-
for _ in 0..30 {
609+
for _ in 0..20 {
610610
let dup = input.clone();
611611
input.push_str(&dup);
612612
}
613613
let mut input = Parser::new(&input);
614-
while !input.is_exhausted() {
615-
input.next().expect("What?");
616-
}
614+
while let Ok(..) = input.next() { }
617615
}
618616

619617
impl DeclarationParser for JsonParser {

0 commit comments

Comments
 (0)