mirror of
https://github.com/openai/codex.git
synced 2026-04-30 19:32:04 +03:00
fix: flaky test (#7257)
This commit is contained in:
@@ -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")];
|
||||
|
||||
Reference in New Issue
Block a user