From 92a683175018dcd82af0167c0feb8a15bf60dd4d Mon Sep 17 00:00:00 2001 From: Joel Wachsler Date: Mon, 11 Jul 2022 14:22:35 +0000 Subject: [PATCH] Increase retries --- qbittorrent-web-api-gen/tests/return_type_enum.rs | 2 +- .../tests/return_type_with_optional_params.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qbittorrent-web-api-gen/tests/return_type_enum.rs b/qbittorrent-web-api-gen/tests/return_type_enum.rs index 8b46529..c557513 100644 --- a/qbittorrent-web-api-gen/tests/return_type_enum.rs +++ b/qbittorrent-web-api-gen/tests/return_type_enum.rs @@ -17,7 +17,7 @@ async fn main() -> Result<()> { const TORRENT_URL: &str = "http://www.legittorrents.info/download.php?id=5cc013e801095be61d768e609e3039da58616fd0&f=Oddepoxy%20-%20Oddepoxy%20(2013)%20[OGG%20320%20CBR].torrent"; let _ = api.torrent_management().add(TORRENT_URL).send().await?; - let mut tries = 5; + let mut tries = 10; while tries > 0 { let info = api.torrent_management().info().send().await?; if let Some(first) = &info.get(0) { diff --git a/qbittorrent-web-api-gen/tests/return_type_with_optional_params.rs b/qbittorrent-web-api-gen/tests/return_type_with_optional_params.rs index 8b46529..c557513 100644 --- a/qbittorrent-web-api-gen/tests/return_type_with_optional_params.rs +++ b/qbittorrent-web-api-gen/tests/return_type_with_optional_params.rs @@ -17,7 +17,7 @@ async fn main() -> Result<()> { const TORRENT_URL: &str = "http://www.legittorrents.info/download.php?id=5cc013e801095be61d768e609e3039da58616fd0&f=Oddepoxy%20-%20Oddepoxy%20(2013)%20[OGG%20320%20CBR].torrent"; let _ = api.torrent_management().add(TORRENT_URL).send().await?; - let mut tries = 5; + let mut tries = 10; while tries > 0 { let info = api.torrent_management().info().send().await?; if let Some(first) = &info.get(0) {