Skip to content

Commit

Permalink
quic tests: Use alg.sample_len() instead of hard-coding length.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Mar 5, 2025
1 parent 4c7c9c7 commit 607474d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/quic_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn test_sample_len(alg: &'static quic::Algorithm) {

let key = quic::HeaderProtectionKey::new(alg, &key_data).unwrap();

let sample_len = 16;
let sample_len = alg.sample_len();
let sample_data = vec![0u8; sample_len + 2];

// Sample is the right size.
Expand Down

0 comments on commit 607474d

Please sign in to comment.