fix torba test_sync test reliability

This commit is contained in:
Lex Berezhny 2019-06-23 22:40:41 -04:00
parent 9ce93a1da6
commit 21f02d3e6d

View file

@ -82,6 +82,12 @@ class SyncTests(IntegrationTestCase):
account1.ledger.wait(tx),
account2.ledger.wait(tx),
])
await self.blockchain.generate(1)
await asyncio.wait([
account0.ledger.wait(tx),
account1.ledger.wait(tx),
account2.ledger.wait(tx),
])
self.assertEqual(await account0.get_address_count(chain=0), 21)
self.assertGreater(await account1.get_address_count(chain=1), 6)
self.assertGreater(await account2.get_address_count(chain=1), 6)