Skip to content

Commit 27696fa

Browse files
ai-and-iclaude
andcommitted
Update send_datagram_after_close test to expect ConnectionError
The test assertion now expects SessionError::ConnectionError(LocallyClosed) instead of SessionError::SendDatagramError(ConnectionLost(LocallyClosed)), matching the upcoming session error propagation behavior where connection-level errors are replaced with the stored session error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 148b9c7 commit 27696fa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

web-transport-browser-tests/tests/connection.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,9 @@ async fn server_send_datagram_after_close() {
517517
assert!(
518518
matches!(
519519
err,
520-
SessionError::SendDatagramError(quinn::SendDatagramError::ConnectionLost(
521-
quinn::ConnectionError::LocallyClosed
522-
))
520+
SessionError::ConnectionError(quinn::ConnectionError::LocallyClosed)
523521
),
524-
"expected SendDatagramError(ConnectionLost(LocallyClosed)), got {err:?}"
522+
"expected ConnectionError(LocallyClosed), got {err:?}"
525523
);
526524
})
527525
});

0 commit comments

Comments
 (0)