Skip to content

test: use loopback address for HTTP timeout test#1153

Open
codingkiddo wants to merge 1 commit into
conductor-oss:mainfrom
codingkiddo:test/fix-http-timeout-address
Open

test: use loopback address for HTTP timeout test#1153
codingkiddo wants to merge 1 commit into
conductor-oss:mainfrom
codingkiddo:test/fix-http-timeout-address

Conversation

@codingkiddo
Copy link
Copy Markdown

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

This PR updates HttpTaskTest to use a loopback 127/8 address instead of 10.255.14.15 for the HTTP connection timeout test.

The previous address can behave differently depending on the local/network environment. In some environments it may fail immediately with Network unreachable, which means the test does not validate the intended timeout behavior.

Using a loopback address keeps the test focused on the intended timeout scenario and avoids depending on external/private-network routing behavior.

Issue #1109

Alternatives considered

I considered keeping the existing RFC1918 address, but that leaves the test dependent on environment-specific network routing behavior.

I also considered using another non-loopback unroutable address, but a 127/8 loopback address is more deterministic for this test scenario and matches the direction suggested in the issue.

Signed-off-by: Vinod Kumar <codingkiddo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant