diff --git a/tests/integration/test_dht.py b/tests/integration/test_dht.py index 33910d6df..83a9dd459 100644 --- a/tests/integration/test_dht.py +++ b/tests/integration/test_dht.py @@ -111,4 +111,4 @@ class DHTIntegrationTest(AsyncioTestCase): # now a search happens, which removes bad peers while contacting them self.assertTrue(node1.protocol.routing_table.get_peers()) await node1.peer_search(node2.protocol.node_id) - self.assertFalse(node1.protocol.routing_table.get_peers()) + self.assertIn(peer, node1.protocol.ping_queue._pending_contacts)