Loosen assertion in timeout unit test to avoid spurious CI failures
This commit is contained in:
parent
def1e1e91a
commit
7cd1d77c08
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ fn test_parsing_with_a_timeout() {
|
|||
);
|
||||
assert!(tree.is_none());
|
||||
assert!(start_time.elapsed().as_micros() > 500);
|
||||
assert!(start_time.elapsed().as_micros() < 1500);
|
||||
assert!(start_time.elapsed().as_micros() < 2000);
|
||||
|
||||
// Finish parsing
|
||||
parser.set_timeout_micros(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue