mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
Add test timout
This commit is contained in:
@@ -679,6 +679,7 @@ impl<T: Write + Seek + Send + Sync + ClearFile + GetTargetFileName> Drop for Dow
|
||||
}
|
||||
}
|
||||
|
||||
#[proc_macros::async_timeout_test("100s")]
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
async fn test_downloader() {
|
||||
let p = Path::new("./test");
|
||||
@@ -720,6 +721,7 @@ async fn test_downloader() {
|
||||
}
|
||||
}
|
||||
|
||||
#[proc_macros::async_timeout_test("60s")]
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
async fn test_failed_downloader() {
|
||||
let p = Path::new("./test");
|
||||
@@ -756,6 +758,7 @@ async fn test_failed_downloader() {
|
||||
}
|
||||
}
|
||||
|
||||
#[proc_macros::async_timeout_test("60s")]
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
async fn test_downloader_dropped() {
|
||||
let p = Path::new("./test");
|
||||
|
||||
Reference in New Issue
Block a user