From efa2ceb07120270d633901c3a359ab685f7389d1 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 11 Mar 2021 16:59:11 +0100 Subject: [PATCH] protocols/kad/tests: Ignore Kademlia routing update event In the `libp2p-relay` Kademlia discovery test, ignore Kademlia routing update events when waiting for a ping from the destination node. --- protocols/relay/tests/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/relay/tests/lib.rs b/protocols/relay/tests/lib.rs index a89c84fe5e9..70584d8a62b 100644 --- a/protocols/relay/tests/lib.rs +++ b/protocols/relay/tests/lib.rs @@ -668,6 +668,9 @@ fn firewalled_src_discover_firewalled_dst_via_kad_and_connect_to_dst_via_routabl break; } } + SwarmEvent::Behaviour(CombinedEvent::Kad(KademliaEvent::RoutingUpdated { + .. + })) => {} e => panic!("{:?}", e), } }