forked from LBRYCommunity/lbry-sdk
Correct the terminal height we wait for in generate().
This commit is contained in:
parent
988f288715
commit
a7c7ab7f7b
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ class IntegrationTestCase(AsyncioTestCase):
|
|||
async def generate(self, blocks):
|
||||
""" Ask lbrycrd to generate some blocks and wait until ledger has them. """
|
||||
prepare = self.ledger.on_header.where(self.blockchain.is_expected_block)
|
||||
height = self.blockchain.block_expected
|
||||
height = self.blockchain.block_expected + blocks
|
||||
self.conductor.spv_node.server.synchronized.clear()
|
||||
await self.blockchain.generate(blocks)
|
||||
await prepare # no guarantee that it didn't happen already, so start waiting from before calling generate
|
||||
|
|
Loading…
Reference in a new issue