From 8b0aaa4a60c9a23ebbcae50d4913edfb70944300 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 1 Mar 2026 01:21:50 +0000 Subject: [PATCH] fix(test): increase cpu exhaustion timeout bound for coverage The threat_cpu_exhaustion_timeout test asserted elapsed < 15s, but under tarpaulin coverage instrumentation the overhead pushes execution past 15s (observed 15.22s in CI). Increase bound to 30s. https://claude.ai/code/session_018tdhmNszTYmKk4hkqsuCSz --- crates/bashkit/tests/threat_model_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bashkit/tests/threat_model_tests.rs b/crates/bashkit/tests/threat_model_tests.rs index 32a8c83f..6fb2496b 100644 --- a/crates/bashkit/tests/threat_model_tests.rs +++ b/crates/bashkit/tests/threat_model_tests.rs @@ -158,8 +158,8 @@ mod resource_exhaustion { let elapsed = start.elapsed(); // Should complete quickly due to either timeout or loop limit. - // Under ASan the overhead can be ~10x, so use a generous bound. - assert!(elapsed < Duration::from_secs(15)); + // Under ASan/tarpaulin the overhead can be ~20x, so use a generous bound. + assert!(elapsed < Duration::from_secs(30)); } }