mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
codex: harden wait-agent shutdown test (#16599)
This commit is contained in:
@@ -2427,14 +2427,12 @@ async fn wait_agent_returns_final_status_without_timeout() {
|
||||
.await
|
||||
.expect("subscribe should succeed");
|
||||
|
||||
let _ = thread
|
||||
thread
|
||||
.thread
|
||||
.submit(Op::Shutdown {})
|
||||
.shutdown_and_wait()
|
||||
.await
|
||||
.expect("shutdown should submit");
|
||||
let _ = timeout(Duration::from_secs(1), status_rx.changed())
|
||||
.await
|
||||
.expect("shutdown status should arrive");
|
||||
.expect("shutdown should complete");
|
||||
assert_eq!(status_rx.borrow_and_update().clone(), AgentStatus::Shutdown);
|
||||
|
||||
let invocation = invocation(
|
||||
Arc::new(session),
|
||||
|
||||
Reference in New Issue
Block a user