Skip to content

Commit

Permalink
Updated anon download test to have a unique file
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Aug 26, 2024
1 parent d7eb94e commit 3b95831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tribler/test_integration/test_anon_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ async def start_seeding(self) -> bytes:
config = await self.add_mock_download_config(self.download_manager_seeder, 0)
config.set_safe_seeding(False)

with open(config.get_dest_dir() / "ubuntu-15.04-desktop-amd64.iso", "wb") as f: # noqa: ASYNC101
f.write(bytes([0] * 524288))
with open(config.get_dest_dir() / "ubuntu-15.04-desktop-amd64.iso", "wb") as f: # noqa: ASYNC230
f.write(bytes([1] * 524288))

metainfo = create_torrent_file([config.get_dest_dir() / "ubuntu-15.04-desktop-amd64.iso"], {})["metainfo"]
tdef = TorrentDef(metainfo=libtorrent.bdecode(metainfo))
Expand Down

0 comments on commit 3b95831

Please sign in to comment.