test(client): use fallible packet length helpers in integration tests

This commit is contained in:
Nils Andreas Svee committed 2026-05-12 13:05:45 +07:00
1 parent 4549d95d0a
commit a7e10358fd
6 files changed
+20 -20

No files matched your search

+1 -1
View File
@@ -534,7 +534,7 @@ fn echo_reply_packet(
) -> Vec<u8> {
let has_hmac = hmac_key.is_some();
let layout = irtt_proto::PacketLayout::echo(has_hmac, params);
let packet_len = echo_packet_len(has_hmac, params);
let packet_len = test_echo_packet_len(has_hmac, params);
let mut packet = Vec::with_capacity(packet_len);
packet.extend_from_slice(&MAGIC);