Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: make realtime conversation flake test order-insensitive (#12475)

Michael Bolinb73c4b50a27e
diff --git a/codex-rs/core/tests/suite/realtime_conversation.rs b/codex-rs/core/tests/suite/realtime_conversation.rs
index 466686788d..fc7b21e0e8 100644
--- a/codex-rs/core/tests/suite/realtime_conversation.rs
+++ b/codex-rs/core/tests/suite/realtime_conversation.rs
@@ -120,7 +120,7 @@ async fn conversation_start_audio_text_close_round_trip() -> Result<()> {
.as_deref()
.expect("started session id should be present")
);
- let request_types = [
+ let mut request_types = [
connection[1].body_json()["type"]
.as_str()
.expect("request type")
@@ -130,6 +130,7 @@ async fn conversation_start_audio_text_close_round_trip() -> Result<()> {
.expect("request type")
.to_string(),
];
+ request_types.sort();
assert_eq!(
request_types,
[