Add test timout

This commit is contained in:
2022-06-16 13:48:08 +00:00
committed by GitHub
parent 8231792bf0
commit e538ee5715
5 changed files with 108 additions and 1 deletions

View File

@@ -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");