From 0867ab7981641f973cd206eb67e07c6b7cc6dc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Fiala?= Date: Wed, 20 Dec 2023 17:23:52 +0100 Subject: [PATCH] Increase timeout duration while printing memory stats --- smt-log-parser/tests/parse_logs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smt-log-parser/tests/parse_logs.rs b/smt-log-parser/tests/parse_logs.rs index 809ca822..170d72da 100644 --- a/smt-log-parser/tests/parse_logs.rs +++ b/smt-log-parser/tests/parse_logs.rs @@ -13,7 +13,8 @@ fn parse_all_logs() { // Set limit if supported let _ = rlimit::Resource::RSS.set(metadata.len(), rlimit::Resource::RSS.get_hard().unwrap_or(rlimit::INFINITY)).unwrap(); // Gives 50 millis per MB (or 50 secs per GB) - let to = Duration::from_millis(500 + (metadata.len() / 20_000)); + // let to = Duration::from_millis(500 + (metadata.len() / 20_000)); + let to = Duration::from_secs(600); println!("Parsing {} with timeout of {to:?}", filename.display()); let (timeout, _result) = parser.process_all_timeout(to); assert!(timeout.is_none());