mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-25 15:51:34 +00:00
fix(test): only listen on 127.0.0.1
for ephemeral swarm
This resolves an issue where our tests were depending on the number of network interfaces available on the local machine. Related #4110. Pull-Request: #4122. Co-Authored-By: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
@ -418,7 +418,7 @@ mod tests {
|
||||
|
||||
let (
|
||||
[SwarmEvent::OutgoingConnectionError { error: DialError::Denied { cause: outgoing_cause }, .. }],
|
||||
[_, _, _, SwarmEvent::IncomingConnectionError { error: ListenError::Denied { cause: incoming_cause }, .. }],
|
||||
[_, SwarmEvent::IncomingConnectionError { error: ListenError::Denied { cause: incoming_cause }, .. }],
|
||||
) = libp2p_swarm_test::drive(&mut dialer, &mut listener).await else {
|
||||
panic!("unexpected events")
|
||||
};
|
||||
|
Reference in New Issue
Block a user