From d0ed7593de34d1b5a388549b171cdc67955f75cd Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 29 Sep 2021 13:13:21 -0400 Subject: [PATCH] fix test_sqlite_coin_chooser --- .../integration/blockchain/test_transactions.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/integration/blockchain/test_transactions.py b/tests/integration/blockchain/test_transactions.py index c18e17552..166865362 100644 --- a/tests/integration/blockchain/test_transactions.py +++ b/tests/integration/blockchain/test_transactions.py @@ -210,14 +210,17 @@ class BasicTransactionTests(IntegrationTestCase): self.ledger.coin_selection_strategy = 'sqlite' await self.ledger.subscribe_account(self.account) - txids = [] - txids.append(await self.blockchain.send_to_address(address, 1.0)) - txids.append(await self.blockchain.send_to_address(address, 1.0)) - txids.append(await self.blockchain.send_to_address(address, 3.0)) - txids.append(await self.blockchain.send_to_address(address, 5.0)) - txids.append(await self.blockchain.send_to_address(address, 10.0)) + txid = await self.blockchain.send_to_address(address, 1.0) + await self.wait_for_txid(txid, address) + txid = await self.blockchain.send_to_address(address, 1.0) + await self.wait_for_txid(txid, address) + txid = await self.blockchain.send_to_address(address, 3.0) + await self.wait_for_txid(txid, address) + txid = await self.blockchain.send_to_address(address, 5.0) + await self.wait_for_txid(txid, address) + txid = await self.blockchain.send_to_address(address, 10.0) + await self.wait_for_txid(txid, address) - await asyncio.wait([self.wait_for_txid(txid, address) for txid in txids], timeout=1) await self.assertBalance(self.account, '20.0') await self.assertSpendable([99992600, 99992600, 299992600, 499992600, 999992600])