From 66cb8ade6c0db2fc1757fadb483e0f2e1731fe2a Mon Sep 17 00:00:00 2001 From: "923048992@qq.com" <923048992@qq.com> Date: Wed, 15 Jan 2025 20:58:16 +0800 Subject: [PATCH] chore: optimize video download unit test --- src-tauri/src/client/video.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/client/video.rs b/src-tauri/src/client/video.rs index 4445c14..f9b8457 100644 --- a/src-tauri/src/client/video.rs +++ b/src-tauri/src/client/video.rs @@ -467,7 +467,9 @@ mod tests { #[tokio::test] async fn test_download_video() -> Result<()> { let cli = Arc::new(Client::new()); - let video_url = "https://www.w3schools.com/html/mov_bbb.mp4"; + // let video_url = "https://www.w3schools.com/html/mov_bbb.mp4"; + // a bigger one, more than one video block + let video_url = "https://download.samplelib.com/mp4/sample-10s.mp4"; let save_path = "test.mp4"; let video_info = VideoPlayInfo { rtmp_url_hdv: video_url.to_owned(),