From c03757a1591b2479f45b22954248cdf6f109da78 Mon Sep 17 00:00:00 2001 From: Fitra Kacamarga Date: Fri, 4 Sep 2026 19:20:49 +0700 Subject: [PATCH] test(pair-relay): drop duplicate timeout case Remove test_cancellation_immediate, which upstream documents as an explicit duplicate of test 9 and implements identically. test_120s_timeout remains the canonical virtual-time coverage. Signed-off-by: Fitra Kacamarga --- crates/buzz-pair-relay/tests/integration.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/crates/buzz-pair-relay/tests/integration.rs b/crates/buzz-pair-relay/tests/integration.rs index 77b71ba4dd5..94d83daf561 100644 --- a/crates/buzz-pair-relay/tests/integration.rs +++ b/crates/buzz-pair-relay/tests/integration.rs @@ -1176,20 +1176,6 @@ async fn test_reader_backpressure_closes() { } } -/// 42. Connection closes promptly after 120 s (virtual time). -/// Explicit duplicate of test 9 with a slightly different assertion style. -#[tokio::test(start_paused = true)] -async fn test_cancellation_immediate() { - let url = start_relay().await; - let mut ws = connect(&url).await; - - tokio::time::advance(Duration::from_secs(121)).await; - tokio::task::yield_now().await; - - // The connection must be closed — not just slow. - assert_closed(&mut ws).await; -} - /// 43. Client-initiated graceful close receives a Close reply. /// Explicit duplicate of test 34 with a different connection state. #[tokio::test]