cultnet-rs: the reconnect test expects the Accept to have acknowledged the new Connect

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-29 21:37:24 +02:00
commit c412eed066

View file

@ -680,8 +680,9 @@ fn a_receipt_invalidated_by_a_peer_disconnect_never_becomes_acknowledged() -> Re
CultNetRudpReliableSendStatus::Invalidated,
"the old session's write was acknowledged in the new session"
);
// The old write is not retransmitted into the new session either.
assert_eq!(client.outstanding_reliable_packet_count(), 1, "only the reconnect's own Connect is outstanding");
// The old write is not retransmitted into the new session either: the
// Accept acknowledged the reconnect's Connect, and nothing else is owed.
assert_eq!(client.outstanding_reliable_packet_count(), 0, "the old write survived into the new session");
Ok(())
}