test: bump start_time limit for sparc64

This commit is contained in:
Amaan Qureshi 2023-07-18 15:35:18 -04:00
parent 77a8c56558
commit c436897662
No known key found for this signature in database
GPG key ID: E67890ADC4227273

View file

@ -661,8 +661,12 @@ fn test_parsing_with_a_timeout() {
None,
);
assert!(tree.is_none());
#[cfg(not(target_arch = "sparc64"))]
assert!(start_time.elapsed().as_micros() < 2000);
#[cfg(target_arch = "sparc64")]
assert!(start_time.elapsed().as_micros() < 4000);
// Continue parsing, but pause after 1 ms of processing.
parser.set_timeout_micros(5000);
let start_time = time::Instant::now();