mirror of
https://github.com/openai/codex.git
synced 2026-05-01 09:56:37 +00:00
Suppress cancelled turn follow-up requests
This commit is contained in:
@@ -168,6 +168,18 @@ async fn thread_unsubscribe_during_turn_interrupts_turn_and_emits_thread_closed(
|
||||
};
|
||||
assert_eq!(payload.thread_id, thread_id);
|
||||
|
||||
tokio::time::sleep(std::time::Duration::from_millis(200)).await;
|
||||
|
||||
let requests = server
|
||||
.received_requests()
|
||||
.await
|
||||
.context("failed to fetch received requests")?;
|
||||
assert_eq!(
|
||||
requests.len(),
|
||||
1,
|
||||
"unsubscribe should not trigger a follow-up responses request"
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user