From caf838947c59ec90ccb7a555cc9eb3ef39025232 Mon Sep 17 00:00:00 2001 From: Phoenix Kahlo Date: Sun, 15 Dec 2024 14:56:11 -0600 Subject: [PATCH] tests(proto): Gate PLPMTUD test There is a should_panic test which depends on a debug assertion to panic. This commit makes the test enabled only when debug assertions are enabled. This fixes `cargo test --release`. --- quinn-proto/src/connection/mtud.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/quinn-proto/src/connection/mtud.rs b/quinn-proto/src/connection/mtud.rs index be1fe7eef..a20f15d8e 100644 --- a/quinn-proto/src/connection/mtud.rs +++ b/quinn-proto/src/connection/mtud.rs @@ -731,6 +731,7 @@ mod tests { assert!(completed(&mtud)); } + #[cfg(debug_assertions)] #[test] #[should_panic] fn mtu_discovery_with_peer_max_udp_payload_size_after_search_panics() {