From 21f02d3e6dcbe12b9240f138fdd9ed59d25846e6 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 23 Jun 2019 22:40:41 -0400 Subject: [PATCH] fix torba test_sync test reliability --- torba/tests/client_tests/integration/test_sync.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/torba/tests/client_tests/integration/test_sync.py b/torba/tests/client_tests/integration/test_sync.py index cfb22755c..6e5c56381 100644 --- a/torba/tests/client_tests/integration/test_sync.py +++ b/torba/tests/client_tests/integration/test_sync.py @@ -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)