Skip to content

Commit

Permalink
tests(proto): Gate PLPMTUD test
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
gretchenfrage authored and djc committed Dec 16, 2024
1 parent 73545b6 commit caf8389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quinn-proto/src/connection/mtud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit caf8389

Please sign in to comment.