Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identify: flaky TestLocalhostAddrFiltering #854

Closed
Stebalien opened this issue Mar 25, 2020 · 5 comments
Closed

identify: flaky TestLocalhostAddrFiltering #854

Stebalien opened this issue Mar 25, 2020 · 5 comments
Assignees

Comments

@Stebalien
Copy link
Member

--- FAIL: TestLocalhostAddrFiltering (0.06s)

    id_test.go:268: expected one addr, found [/ip4/1.2.3.4/tcp/1234 /ip4/127.0.0.1/tcp/2345]
@willscott
Copy link
Contributor

it appears that the underlying trigger here is a test which is spinning up two nodes, both on localhost, and both believing they have a localhost and a 1.2.3.4 address. When the underlying connection is made between the nodes, the connection should be made only between their 1.2.3 addresses, but it appears the nodes are seeing when they look at the conn that conn.RemoteMultiaddr() is a 127.0.0.1 address.

@willscott
Copy link
Contributor

underlying issue is that the mocknet is choosing the link to actually use randomly

https://github.com/libp2p/go-libp2p/blob/master/p2p/net/mock/mock_peernet.go#L152

@aarshkshah1992
Copy link
Contributor

Have skipped the test for now in this PR:

#747.

@Stebalien
Copy link
Member Author

H

@Stebalien Stebalien reopened this May 1, 2021
@marten-seemann marten-seemann changed the title Flaky TestLocalhostAddrFiltering identify: flaky TestLocalhostAddrFiltering Jan 27, 2023
@marten-seemann
Copy link
Contributor

It doesn't seem to flake any more: https://marcopolo.github.io/FlakyTests/.

@marten-seemann marten-seemann closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants