diff --git a/neqo-transport/src/connection/tests/handshake.rs b/neqo-transport/src/connection/tests/handshake.rs index b68a6d0058..46a0a167f1 100644 --- a/neqo-transport/src/connection/tests/handshake.rs +++ b/neqo-transport/src/connection/tests/handshake.rs @@ -563,7 +563,7 @@ fn reorder_handshake() { c_stats_before.packets_rx, usize::from(s_hs1_has_initial) + usize::from(s_hs2_has_initial) ); - assert!(c_stats_before.dropped_rx == 0); + assert_eq!(c_stats_before.dropped_rx, 0); // Deliver all Initial packets. client.process_input(s_initial_2, now); diff --git a/neqo-transport/tests/retry.rs b/neqo-transport/tests/retry.rs index a95b17c0dd..b673870bf1 100644 --- a/neqo-transport/tests/retry.rs +++ b/neqo-transport/tests/retry.rs @@ -287,7 +287,7 @@ fn retry_after_initial() { // We need to have the client just process the Initial. let dgram = client.process(Some(server_initial), now()).dgram(); assert!(dgram.is_some()); - assert!(*client.state() != State::Connected); + assert_ne!(*client.state(), State::Connected); let retry = retry_server.process(cinit, now()).dgram(); // Retry! assert!(retry.is_some());