diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-14 20:59:32 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-14 21:02:12 +0200 |
commit | baffdf885aab7490e1024a73f8ee3ce35817c586 (patch) | |
tree | c2775b605b27cf9293dfdd2e2b933f5c3def26d8 /crates/yt_dlp/src/duration.rs | |
parent | build(scripts/mkdb.sh): Update to use new sql schema path (diff) | |
download | yt-baffdf885aab7490e1024a73f8ee3ce35817c586.tar.gz yt-baffdf885aab7490e1024a73f8ee3ce35817c586.zip |
test(treewide): Fix, so they compile and ignore
The tests are just not in an ideal state right now. Running them via `cargo test` still works, but the `yt_dlp` test simply seem to deadlock?
Diffstat (limited to 'crates/yt_dlp/src/duration.rs')
-rw-r--r-- | crates/yt_dlp/src/duration.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/yt_dlp/src/duration.rs b/crates/yt_dlp/src/duration.rs index f91892d..19181a5 100644 --- a/crates/yt_dlp/src/duration.rs +++ b/crates/yt_dlp/src/duration.rs @@ -68,11 +68,11 @@ mod test { #[test] fn test_display_duration_1h() { let dur = Duration { time: 60 * 60 }; - assert_eq!("[1h 0m]".to_owned(), dur.to_string()); + assert_eq!("1h 0m".to_owned(), dur.to_string()); } #[test] fn test_display_duration_30min() { let dur = Duration { time: 60 * 30 }; - assert_eq!("[30m 0s]".to_owned(), dur.to_string()); + assert_eq!("30m 0s".to_owned(), dur.to_string()); } } |