Skip to content

Change the IP address in the connect_timeout_unroutable test. - #57506

Closed
nnethercote wants to merge 1 commit into
rust-lang:masterfrom
nnethercote:fix-connect_timeout_unroutable
Closed

Change the IP address in the connect_timeout_unroutable test.#57506
nnethercote wants to merge 1 commit into
rust-lang:masterfrom
nnethercote:fix-connect_timeout_unroutable

Conversation

@nnethercote

@nnethercotennethercote commented Jan 11, 2019

Copy link
Copy Markdown
Contributor

Because the current address is reachable on some machines, which causes
the test to fail.

Fixes#44698, fixes#50065.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @dtolnay

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 11, 2019
@nnethercote

Copy link
Copy Markdown
ContributorAuthor

I can't guarantee this will work universally, for reasons explained in the comment. But it fixes the test failure for my Ubuntu 18.04 box.

@nnethercote

Copy link
Copy Markdown
ContributorAuthor

#44698 has some extra info. @RalfJung said changing to 192.0.2.2 didn't fix the problem, which is disappointing. @bobtwinkles suggested "disabling it on non-CI builds by default" -- what would that look like?

Because the current address is reachable on some machines, which causes
the test to fail.
Fixesrust-lang#44698, rust-lang#50065.
@nnethercote
nnethercoteforce-pushed the fix-connect_timeout_unroutable branch from f4c2405 to ca26d44CompareJanuary 11, 2019 02:47
@dtolnay

Copy link
Copy Markdown
Member

r? @sfackler

@nagisa

Copy link
Copy Markdown
Member

This test should just go. There are so many ways this could do something else for any IP that it makes no sense to test for it without mocking out the system call.

@nnethercote

Copy link
Copy Markdown
ContributorAuthor

This test should just go.

I filed #57584, which removes the test, as an alternative. I'll let @sfackler decide which approach is better.

@nnethercote

Copy link
Copy Markdown
ContributorAuthor

@sfackler approved #57584, so I'll close this.

@nnethercote
nnethercote deleted the fix-connect_timeout_unroutable branch January 14, 2019 02:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

net::tcp::tests::connect_timeout_unroutable can fail with ConnectionRefused test failure: net::tcp::tests::connect_timeout_unroutable

5 participants

@nnethercote@rust-highfive@dtolnay@nagisa@sfackler