From 2dfd05b6c286dc9aa4ebc40e4315247805f1cad9 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sun, 11 Jan 2026 19:48:58 -0800 Subject: [PATCH] remove --- codex-rs/otel/tests/suite/otlp_http_loopback.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/codex-rs/otel/tests/suite/otlp_http_loopback.rs b/codex-rs/otel/tests/suite/otlp_http_loopback.rs index 3330574b0c..0a9b1f390e 100644 --- a/codex-rs/otel/tests/suite/otlp_http_loopback.rs +++ b/codex-rs/otel/tests/suite/otlp_http_loopback.rs @@ -137,7 +137,7 @@ fn otlp_http_exporter_sends_metrics_to_collector() -> Result<()> { let (tx, rx) = mpsc::channel::>(); let server = thread::spawn(move || { let mut captured = Vec::new(); - let deadline = Instant::now() + Duration::from_secs(12); + let deadline = Instant::now() + Duration::from_secs(3); while Instant::now() < deadline { match listener.accept() { @@ -150,9 +150,6 @@ fn otlp_http_exporter_sends_metrics_to_collector() -> Result<()> { content_type: headers.get("content-type").cloned(), body, }); - if !captured.is_empty() { - break; - } } } Err(err) if err.kind() == std::io::ErrorKind::WouldBlock => {