We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 841f902 commit 4381fc2Copy full SHA for 4381fc2
1 file changed
crates/sandchest-agent/src/exec.rs
@@ -437,7 +437,12 @@ mod tests {
437
})
438
.expect("should have exit event");
439
440
- assert_eq!(exit_event.exit_code, -1, "timed-out process should exit with -1");
+ // Timed-out process exits with -1 (our sentinel) or 143 (128 + SIGTERM) depending on timing
441
+ assert!(
442
+ exit_event.exit_code == -1 || exit_event.exit_code == 143,
443
+ "timed-out process should exit with -1 or 143, got {}",
444
+ exit_event.exit_code
445
+ );
446
}
447
448
#[tokio::test]
0 commit comments