fix dht node test

This commit is contained in:
Lex Berezhny 2021-07-20 22:14:17 -04:00
parent 34fc530fba
commit 7a72409b61

View file

@ -160,5 +160,5 @@ class TestTemporarilyLosingConnection(AsyncioTestCase):
await advance(1000)
await wait_for(
lambda: len(node.protocol.routing_table.get_peers()) >= num_seeds,
lambda: self.assertTrue(len(node.protocol.routing_table.get_peers()) >= num_seeds)
lambda: self.assertGreaterEqual(len(node.protocol.routing_table.get_peers()), num_seeds)
)