From c412eed0667fb20e95d1b6a88f7036dc7381a4f8 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 21:37:24 +0200 Subject: [PATCH] cultnet-rs: the reconnect test expects the Accept to have acknowledged the new Connect Co-Authored-By: Claude Opus 5.5 --- packages/cultnet-rs/tests/rudp_stray_packets.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cultnet-rs/tests/rudp_stray_packets.rs b/packages/cultnet-rs/tests/rudp_stray_packets.rs index 25dd80e6..33f02794 100644 --- a/packages/cultnet-rs/tests/rudp_stray_packets.rs +++ b/packages/cultnet-rs/tests/rudp_stray_packets.rs @@ -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(()) }