Skip to content

Commit a40c3a9

Browse files
committed
quic tests: Verify sample length is 16 bytes.
1 parent a40bdae commit a40c3a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/quic_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ fn test_sample_len(alg: &'static quic::Algorithm) {
6868
let key = quic::HeaderProtectionKey::new(alg, &key_data).unwrap();
6969

7070
let sample_len = alg.sample_len();
71+
assert_eq!(sample_len, 16); // For all currently-implemented algorithms
7172
let sample_data = vec![0u8; sample_len + 2];
7273

7374
// Sample is the right size.

0 commit comments

Comments
 (0)