forked from LBRYCommunity/lbry-sdk
Wait for hub to update with all 100 new blocks
before proceeding with initial_headers_sync().
This commit is contained in:
parent
f78d7896a5
commit
5c543cb374
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class ReconnectTests(IntegrationTestCase):
|
||||||
await self.ledger.stop()
|
await self.ledger.stop()
|
||||||
initial_height = self.ledger.local_height_including_downloaded_height
|
initial_height = self.ledger.local_height_including_downloaded_height
|
||||||
await self.blockchain.generate(100)
|
await self.blockchain.generate(100)
|
||||||
while self.conductor.spv_node.server.session_manager.notified_height < initial_height + 99: # off by 1
|
while self.conductor.spv_node.server.session_manager.notified_height < initial_height + 100:
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
self.assertEqual(initial_height, self.ledger.local_height_including_downloaded_height)
|
self.assertEqual(initial_height, self.ledger.local_height_including_downloaded_height)
|
||||||
await self.ledger.headers.open()
|
await self.ledger.headers.open()
|
||||||
|
|
Loading…
Reference in a new issue