diff --git a/neqo-transport/src/connection/tests/idle.rs b/neqo-transport/src/connection/tests/idle.rs index 4aac186074..336648f776 100644 --- a/neqo-transport/src/connection/tests/idle.rs +++ b/neqo-transport/src/connection/tests/idle.rs @@ -706,11 +706,10 @@ fn keep_alive_with_ack_eliciting_packet_lost() { assert!(retransmit.is_some()); // The timeout is the twice the PTO, because we've already sent one probe. - assert_eq!(client.process_output(now).callback(), pto * 2,); + assert_eq!(client.process_output(now).callback(), pto * 2); // Wait for half the idle timeout (less the PTO we've already waited) - // so that we get a keep-alive. The actual timeout is the smaller of this - // duration or PTO*2, whichever is smaller. + // so that we get a keep-alive. now += IDLE_TIMEOUT / 2 - pto; let pings_before = client.stats().frame_tx.ping; let ping = client.process_output(now).dgram(); @@ -718,7 +717,7 @@ fn keep_alive_with_ack_eliciting_packet_lost() { assert_eq!(client.stats().frame_tx.ping, pings_before + 1); // The next callback is for a PTO, the PTO timer is 2 * pto now. - assert_eq!(client.process_output(now).callback(), pto * 2,); + assert_eq!(client.process_output(now).callback(), pto * 2); now += pto * 2; // Now we will retransmit stream data. let retransmit = client.process_output(now).dgram();