Skip to content

Commit 37cdef0

Browse files
committed
fix: Fix the compatible_upgrade_large_initial test
Equivalent of #2363 for `assert_dhcp`.
1 parent 00646f0 commit 37cdef0

File tree

1 file changed

+4
-1
lines changed
  • neqo-transport/src/connection/tests

1 file changed

+4
-1
lines changed

neqo-transport/src/connection/tests/vn.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ fn compatible_upgrade_large_initial() {
284284
assert_eq!(client.stats().dropped_rx, 1);
285285
assert!(matches!(server.stats().dropped_rx, 2 | 3));
286286
assert_dscp(&client.stats());
287-
assert_dscp(&server.stats());
287+
assert!(
288+
server.stats().dscp_rx[IpTosDscp::Cs0] == server.stats().packets_rx
289+
|| server.stats().dscp_rx[IpTosDscp::Cs0] == server.stats().packets_rx + 1
290+
);
288291
}
289292

290293
/// A server that supports versions 1 and 2 might prefer version 1 and that's OK.

0 commit comments

Comments
 (0)