forked from LBRYCommunity/lbry-sdk
fix integrartion test
This commit is contained in:
parent
b49275fe6b
commit
d809283d23
2 changed files with 6 additions and 2 deletions
|
@ -358,8 +358,11 @@ class BlockchainNode:
|
||||||
*cmnd_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
*cmnd_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
||||||
)
|
)
|
||||||
out, _ = await process.communicate()
|
out, _ = await process.communicate()
|
||||||
self.log.info(out.decode().strip())
|
result = out.decode().strip()
|
||||||
return out.decode().strip()
|
self.log.info(result)
|
||||||
|
if result.startswith('error code'):
|
||||||
|
raise Exception(result)
|
||||||
|
return result
|
||||||
|
|
||||||
def generate(self, blocks):
|
def generate(self, blocks):
|
||||||
self.block_expected += blocks
|
self.block_expected += blocks
|
||||||
|
|
|
@ -131,6 +131,7 @@ class BasicTransactionTests(IntegrationTestCase):
|
||||||
self.assertTrue(tx.outputs[1].is_change)
|
self.assertTrue(tx.outputs[1].is_change)
|
||||||
|
|
||||||
async def test_history_edge_cases(self):
|
async def test_history_edge_cases(self):
|
||||||
|
await self.blockchain.generate(300)
|
||||||
await self.assertBalance(self.account, '0.0')
|
await self.assertBalance(self.account, '0.0')
|
||||||
address = await self.account.receiving.get_or_create_usable_address()
|
address = await self.account.receiving.get_or_create_usable_address()
|
||||||
# evil trick: mempool is unsorted on real life, but same order between python instances. reproduce it
|
# evil trick: mempool is unsorted on real life, but same order between python instances. reproduce it
|
||||||
|
|
Loading…
Reference in a new issue