Repository navigation
test: cover fail-fast relative WebSocket dialing URIs - #1660
Merged
Merged
Conversation
Motivation: The public WebSocket dialer requires an absolute URI, but its existing synchronous failure for a relative endpoint was not covered directly. Modification: Exercise the public Scala and Java client flow constructors with a relative URI. Check the URI diagnostic without materializing a flow. Result: Pin the existing local API contract without making a network connection or changing the lower-level WebSocket layer. Tests: - JDK 17, Scala 2.13.18 and 3.3.9: both focused checks passed on each. - Scoped test formatting, license headers, and git diff --check passed. References: None - Informed by Netty 4.2's local WebSocket client setup tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The public Scala and Java WebSocket dialers require an absolute URI. The API tests did not directly cover rejection of a relative endpoint.
Modification
Call the public client-flow constructor in each DSL with an ordinary relative path. Check the synchronous argument error and its absolute-URI diagnostic without materializing a flow or opening a network connection.
Result
Protects the existing public API contract. No production change; the caller-managed WebSocket layer is unchanged.
Tests
References
Informed by Netty 4.2's local WebSocket setup tests. No source or wire fixture was copied.