Skip to content

Commit 4203885

Browse files
authored
refactor(s2n-quic-tests): add test annotation to endpoint_limits_close_test (#2816)
1 parent aac71ce commit 4203885

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

quic/s2n-quic-tests/src/tests/endpoint_limits.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ impl connection_id::Validator for MaxSizeIdFormat {
5252
}
5353
}
5454

55+
//= https://www.rfc-editor.org/rfc/rfc9000#section-5.2.2
56+
//= type=test
57+
//# If a server refuses to accept a new connection, it SHOULD send an
58+
//# Initial packet containing a CONNECTION_CLOSE frame with error code
59+
//# CONNECTION_REFUSED.
5560
// This test verifies that the server sends a CONNECTION_CLOSE frame with
5661
// error code CONNECTION_REFUSED when the server's limiter returns Outcome::close().
5762
#[test]

0 commit comments

Comments
 (0)