Skip to content

Commit 033436e

Browse files
committed
remove stale test
1 parent d3b837c commit 033436e

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

pulsebeam/src/rtp/monitor.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,41 +1120,6 @@ mod test {
11201120
);
11211121
}
11221122

1123-
#[test]
1124-
fn test_duplicate_packet_overwrite() {
1125-
let mut monitor = DeltaDeltaState::new(TEST_CAP);
1126-
let factory = PacketFactory::new();
1127-
1128-
// Send packets 1 and 3, creating a gap for packet 2.
1129-
monitor.update(&factory.at(1, 0));
1130-
monitor.update(&factory.at(3, 0));
1131-
1132-
assert_eq!(monitor.tail, 2.into());
1133-
assert!(monitor.packet(3.into()).is_some());
1134-
1135-
// Send a "duplicate" of 3, but with a different arrival time.
1136-
let pkt3_dup = factory.at(3, 10);
1137-
monitor.update(&pkt3_dup);
1138-
assert_eq!(
1139-
monitor.packet(3.into()).as_ref().unwrap().arrival,
1140-
pkt3_dup.arrival_ts,
1141-
"Duplicate should overwrite existing packet data"
1142-
);
1143-
1144-
// Now, fill the gap with packet 2.
1145-
monitor.update(&factory.at(2, 0));
1146-
1147-
assert_eq!(
1148-
monitor.tail,
1149-
4.into(),
1150-
"Tail should have processed up to packet 3"
1151-
);
1152-
assert_eq!(
1153-
monitor.last_arrival, pkt3_dup.arrival_ts,
1154-
"The monitor should have used the overwritten packet's data"
1155-
);
1156-
}
1157-
11581123
#[test]
11591124
fn test_sequence_number_wrap_around() {
11601125
let mut monitor = DeltaDeltaState::new(TEST_CAP);

0 commit comments

Comments
 (0)