From d100b5b9317875ca4a5a3a8f564aaffe40c9066d Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Fri, 23 Feb 2024 17:58:00 +0000 Subject: [PATCH] fix: [#488] broken test after removing duplicate tracker urls from magnet links --- tests/e2e/web/api/v1/contexts/torrent/contract.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/e2e/web/api/v1/contexts/torrent/contract.rs b/tests/e2e/web/api/v1/contexts/torrent/contract.rs index 65b8de10..37910582 100644 --- a/tests/e2e/web/api/v1/contexts/torrent/contract.rs +++ b/tests/e2e/web/api/v1/contexts/torrent/contract.rs @@ -201,13 +201,12 @@ mod for_guests { // it adds the tracker with the personal announce url, if the user // is logged in. If the user is not logged in, it adds the default // tracker again, and it ends up with two trackers. - trackers: vec![tracker_url.clone(), tracker_url.clone()], + trackers: vec![tracker_url.clone()], magnet_link: format!( // cspell:disable-next-line - "magnet:?xt=urn:btih:{}&dn={}&tr={}&tr={}", + "magnet:?xt=urn:btih:{}&dn={}&tr={}", test_torrent.file_info.info_hash.to_lowercase(), urlencoding::encode(&test_torrent.index_info.title), - encoded_tracker_url, encoded_tracker_url ), tags: vec![],