Skip to content

Commit

Permalink
Fixed anon download test not waiting for port (#8144)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink authored Sep 6, 2024
2 parents 35b4147 + 23db3b3 commit 4c389cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tribler/test_integration/test_anon_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ async def start_anon_download(self, infohash: bytes) -> Download:

download = await self.download_manager_downloader.start_download(tdef=TorrentDefNoMetainfo(infohash, b"test"),
config=config)

while not self.download_manager_seeder.listen_ports[0]:
await sleep(0.1)

self.overlay(DOWNLOADER).bittorrent_peers[download] = {
("127.0.0.1", self.download_manager_seeder.listen_ports[0]["127.0.0.1"])
}
Expand Down

0 comments on commit 4c389cc

Please sign in to comment.