From e9e366cbe840fdcd90eaf1fa40f3780782ead58d Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 11 Mar 2021 18:16:33 +0100 Subject: [PATCH] protocols/kad/tests: Ignore Kademlia routing update event (#1993) 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 a89c84fe..70584d8a 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), } }