From 6f9b6ef254bdabb04b41569836a6f44785ba80c1 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 18 Jun 2022 14:11:58 +0000 Subject: [PATCH] Remove worker_threads specify --- src/downloader/downloader.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/downloader/downloader.rs b/src/downloader/downloader.rs index e9a7027..a3f3302 100644 --- a/src/downloader/downloader.rs +++ b/src/downloader/downloader.rs @@ -680,7 +680,7 @@ impl Drop for Dow } #[proc_macros::async_timeout_test(120s)] -#[tokio::test(flavor = "multi_thread", worker_threads = 4)] +#[tokio::test(flavor = "multi_thread")] async fn test_downloader() { let p = Path::new("./test"); if !p.exists() { @@ -722,7 +722,7 @@ async fn test_downloader() { } #[proc_macros::async_timeout_test(120s)] -#[tokio::test(flavor = "multi_thread", worker_threads = 4)] +#[tokio::test(flavor = "multi_thread")] async fn test_failed_downloader() { let p = Path::new("./test"); if !p.exists() { @@ -758,7 +758,7 @@ async fn test_failed_downloader() { } #[proc_macros::async_timeout_test(120s)] -#[tokio::test(flavor = "multi_thread", worker_threads = 4)] +#[tokio::test(flavor = "multi_thread")] async fn test_downloader_dropped() { let p = Path::new("./test"); if !p.exists() {