From 4ea1f182c522592e004de50d5330eb1d21a40cec Mon Sep 17 00:00:00 2001 From: starr-openai Date: Wed, 13 May 2026 12:09:55 -0700 Subject: [PATCH] codex: make proxy decider test DNS independent Co-authored-by: Codex --- codex-rs/core/src/session/tests.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/codex-rs/core/src/session/tests.rs b/codex-rs/core/src/session/tests.rs index 577b2fa5ecc..f7fb9be8aa8 100644 --- a/codex-rs/core/src/session/tests.rs +++ b/codex-rs/core/src/session/tests.rs @@ -786,9 +786,7 @@ async fn managed_network_proxy_decider_survives_full_access_start() -> anyhow::R let mut stream = tokio::net::TcpStream::connect(started_proxy.proxy().http_addr()).await?; stream - .write_all( - b"GET http://example.com/ HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n", - ) + .write_all(b"GET http://8.8.8.8/ HTTP/1.1\r\nHost: 8.8.8.8\r\nConnection: close\r\n\r\n") .await?; let mut buffer = [0_u8; 4096]; let bytes_read = tokio::time::timeout(StdDuration::from_secs(2), stream.read(&mut buffer))