Lightweight coding agent that runs in your terminal
Rust
Pause relay test time while inspecting handshake diagnostics (#55848)
jif4faf60f1265a
diff --git a/codex-rs/exec-server/src/relay_noise_tests.rs b/codex-rs/exec-server/src/relay_noise_tests.rsindex a63005f664..9b4889bb9e 100644--- a/codex-rs/exec-server/src/relay_noise_tests.rs+++ b/codex-rs/exec-server/src/relay_noise_tests.rs@@ -794,6 +794,10 @@ async fn malformed_handshakes_preserve_active_streams_and_admission_recovers() -next_relay_frame(&mut harness_websocket),).await??;+ if authorization == "timeout-authorization-secret" {+ // Diagnostic inspection does not poll the harness socket for pings.+ tokio::time::pause();+ }assert_eq!(reset.stream_id, stream_id);assert_eq!(reset.validate()?, RelayFrameBodyKind::Reset);}@@ -816,6 +820,8 @@ async fn malformed_handshakes_preserve_active_streams_and_admission_recovers() -})}));+ // Keep the close handshake and its timeout on a running clock.+ tokio::time::resume();harness_websocket.close(None).await?;assert_eq!(timeout(Duration::from_secs(1), environment_task).await??,