fix: flaky test (#7257)

This commit is contained in:
jif-oai
2025-11-24 19:45:41 +01:00
committed by GitHub
parent 486b1c4d9d
commit 35d89e820f

View File

@@ -1762,6 +1762,7 @@ async fn unified_exec_runs_under_sandbox() -> Result<()> {
}
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[ignore]
async fn unified_exec_prunes_exited_sessions_first() -> Result<()> {
skip_if_no_network!(Ok(()));
skip_if_sandbox!(Ok(()));
@@ -1789,9 +1790,10 @@ async fn unified_exec_prunes_exited_sessions_first() -> Result<()> {
});
let prune_call_id = "uexec-prune-target";
// Give the sleeper time to exit before the filler sessions trigger pruning.
let prune_args = serde_json::json!({
"cmd": "sleep 1",
"yield_time_ms": 250,
"yield_time_ms": 1_250,
});
let mut events = vec![ev_response_created("resp-prune-1")];