Test failing in local environment #4110
-
There is a test that is consistently failing on my local machine against the latest master branch (though it passes in Github Actions). `rustc --version --verbose`
`cargo test --package "libp2p-allow-block-list" --all-features`
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Can you add a logger to the test, e.g. |
Beta Was this translation helpful? Give feedback.
-
@thomaseizinger thanks for your support on this, the test is now passing for me! `test_discovery_tokio_ipv6`
`test_discovery_async_std_ipv6`
Also |
Beta Was this translation helpful? Give feedback.
Ha, this an interesting one. From your rustc output, I am guessing this is an Apple machine and you only have two network interfaces (loopback + WiFi)?
What is happening here is that we wait for a certain number of events and because we weren't considerate enough when we wrote this test, it implicitly requires that we get 3
NewListenAddress
events. If you only have two interfaces, we'll only get two of those which is one event to few for the test to succeed.We'll have to rewrite this test to be resilient to the number of network interfaces of the machine it is running on.