forked from LBRYCommunity/lbry-sdk
fix test reliability
This commit is contained in:
parent
022d60ec2c
commit
f04c5ee902
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ class ReconnectTests(IntegrationTestCase):
|
||||||
# * goes to pick some water outside... * time passes by and another donation comes in
|
# * goes to pick some water outside... * time passes by and another donation comes in
|
||||||
sendtxid = await self.blockchain.send_to_address(address1, 42)
|
sendtxid = await self.blockchain.send_to_address(address1, 42)
|
||||||
await self.blockchain.generate(1)
|
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!
|
# omg, the burned cable still works! torba is fire proof!
|
||||||
await self.ledger.network.get_transaction(sendtxid)
|
await self.ledger.network.get_transaction(sendtxid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue