Skip to content

Commit

Permalink
Test expectation fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed May 7, 2024
1 parent 3d0363b commit 4e175b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions neqo-transport/src/recovery/sent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,8 @@ mod tests {
}

// Expire up to pkt(1).
let mut it = pkts.remove_expired(start_time() + PACKET_GAP, Duration::new(0, 0));
assert_eq!(it.next().unwrap().pn(), 1);
assert!(it.next().is_none());
std::mem::drop(it);

let count = pkts.remove_expired(start_time() + PACKET_GAP, Duration::new(0, 0));
assert_eq!(count, 1);
assert_eq!(pkts.len(), 1);
}

Expand Down

0 comments on commit 4e175b4

Please sign in to comment.