Repository navigation
test(binding-tcp): skip IPv6 tests when unavailable in the build environment - #2111
Merged
Merged
Conversation
…ronment Add IPv6Support.isAvailable() in binding-tcp.spec and gate the IPv6 k3po tests in binding-tcp.spec and binding-tcp with Assume.assumeTrue so they are skipped, not failed, in environments without IPv6 loopback support. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Nxtu5PtSguEe8D4L7jiAwf
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.
Description
Some build environments have no access to IPv6 locally, which fails the IPv6-based
binding-tcp.specandbinding-tcpk3po integration tests even though the implementation is correct.This adds
IPv6Support.isAvailable()inbinding-tcp.spec— it probes IPv6 loopback by binding aServerSocketto::1— and gates the four IPv6 tests withAssume.assumeTrue(IPv6Support.isAvailable())so they are skipped (not failed) when IPv6 isn't available:specs/binding-tcp.spec:NetworkRoutingIT.shouldConnectClientWithIpv6Extension,ApplicationRoutingIT.shouldConnectClientWithIpv6Extension,ApplicationIT.shouldEstablishConnectionIPv6runtime/binding-tcp:ClientIT.shouldEstablishConnectionIPv6binding-tcpalready depends onbinding-tcp.spec(providedscope), so the single utility class is visible to both modules' tests without duplication.Also added a jacoco exclude for
IPv6Support.classinbinding-tcp.spec/pom.xml, since that module enforces 100% instruction coverage and one branch of the availability probe is inherently environment-dependent (can't be hit in a single CI run either way).Existing
@Ignore("GitHub Actions")/@Ignore("TODO")annotations on other IPv6-related tests (ServerIT,ClientRoutingIT) are intentionally left unchanged.Fixes # (issue)
Generated by Claude Code