From c4368976628cf1852b23435541d9db5b5da44e3f Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 18 Jul 2023 15:35:18 -0400 Subject: [PATCH] test: bump start_time limit for sparc64 --- cli/src/tests/parser_test.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/src/tests/parser_test.rs b/cli/src/tests/parser_test.rs index 8ad1888a..af5f36f5 100644 --- a/cli/src/tests/parser_test.rs +++ b/cli/src/tests/parser_test.rs @@ -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();