Skip to content

Commit

Permalink
Wait for hub to update with all 100 new blocks
Browse files Browse the repository at this point in the history
before proceeding with initial_headers_sync().
  • Loading branch information
moodyjon committed Sep 7, 2022
1 parent a334a93 commit 629a312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/blockchain/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def test_direct_sync(self):
await self.ledger.stop()
initial_height = self.ledger.local_height_including_downloaded_height
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)
self.assertEqual(initial_height, self.ledger.local_height_including_downloaded_height)
await self.ledger.headers.open()
Expand Down

0 comments on commit 629a312

Please sign in to comment.