From f04c5ee902383f3d14d704a6fc51c7ac5d789d07 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 6 Aug 2019 17:36:55 -0300 Subject: [PATCH] fix test reliability --- torba/tests/client_tests/integration/test_network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/torba/tests/client_tests/integration/test_network.py b/torba/tests/client_tests/integration/test_network.py index fb901196a..cc5aef955 100644 --- a/torba/tests/client_tests/integration/test_network.py +++ b/torba/tests/client_tests/integration/test_network.py @@ -43,6 +43,8 @@ class ReconnectTests(IntegrationTestCase): # * goes to pick some water outside... * time passes by and another donation comes in sendtxid = await self.blockchain.send_to_address(address1, 42) await self.blockchain.generate(1) + # (this is just so the test doesnt hang forever if it doesnt reconnect, also its not instant yet) + await asyncio.wait_for(self.ledger.network.on_connected.first, timeout=1.0) # omg, the burned cable still works! torba is fire proof! await self.ledger.network.get_transaction(sendtxid)