Skip to content

Commit

Permalink
test(SentPackets): ignore unknown packet (#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Oct 7, 2024
1 parent bd9cbe0 commit 2d16df8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions neqo-transport/src/recovery/sent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,11 @@ mod tests {
pkts.track(pkt(4)); // This is fine.
assert_eq!(pkts.len(), 1);
}

#[test]
fn ignore_unknown() {
let mut pkts = SentPackets::default();
pkts.track(pkt(0));
assert!(pkts.take_ranges([1..=1]).is_empty());
}
}

0 comments on commit 2d16df8

Please sign in to comment.