fix test reliability

This commit is contained in:
Victor Shyba 2019-08-06 17:36:55 -03:00
parent 022d60ec2c
commit f04c5ee902

View file

@ -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)