From 3b9583153a7a7bf2d95d0d7852f3e755c91c3cc7 Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Thu, 22 Aug 2024 15:02:41 +0200 Subject: [PATCH] Updated anon download test to have a unique file --- src/tribler/test_integration/test_anon_download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tribler/test_integration/test_anon_download.py b/src/tribler/test_integration/test_anon_download.py index 8bb6c1a9c9..fd919a7e8d 100644 --- a/src/tribler/test_integration/test_anon_download.py +++ b/src/tribler/test_integration/test_anon_download.py @@ -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))