test(client): use fallible packet length helpers in integration tests
This commit is contained in:
6 files changed
+20
-20
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user