Skip to content

Commit 86d26f9

Browse files
committed
fix(test): relax cpu_exhaustion_timeout bound for ASan nightly
ASan inflates stack frames ~10x, causing the 5s assertion to fail in nightly CI. Use 15s — still proves timeout works, accommodates sanitizer overhead. Fixes nightly.yml failure from 2026-02-25.
1 parent d72f810 commit 86d26f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/bashkit/tests/threat_model_tests.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ mod resource_exhaustion {
157157
.await;
158158
let elapsed = start.elapsed();
159159

160-
// Should complete quickly due to either timeout or loop limit
161-
assert!(elapsed < Duration::from_secs(5));
160+
// Should complete quickly due to either timeout or loop limit.
161+
// Under ASan the overhead can be ~10x, so use a generous bound.
162+
assert!(elapsed < Duration::from_secs(15));
162163
}
163164
}
164165

0 commit comments

Comments
 (0)