diff options
author | Vika <vika@fireburn.ru> | 2023-02-27 00:32:47 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-02-27 00:32:47 +0300 |
commit | 06e27ddee1d090086c4b2b01cbbfec928a9264bc (patch) | |
tree | 2dbf9a059b62048b53e485bc9835cf1e336ff214 /kittybox-rs/src/media | |
parent | 3985d0f551236e5413e0807239f75d178f82ff3d (diff) | |
download | kittybox-06e27ddee1d090086c4b2b01cbbfec928a9264bc.tar.zst |
tempfile -> tempdir, remove mockito
Diffstat (limited to 'kittybox-rs/src/media')
-rw-r--r-- | kittybox-rs/src/media/storage/file.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kittybox-rs/src/media/storage/file.rs b/kittybox-rs/src/media/storage/file.rs index 6d7068b..cb9cadb 100644 --- a/kittybox-rs/src/media/storage/file.rs +++ b/kittybox-rs/src/media/storage/file.rs @@ -259,7 +259,7 @@ mod tests { #[tokio::test] #[tracing_test::traced_test] async fn test_ranges() { - let tempdir = tempdir::TempDir::new("file").expect("Failed to create tempdir"); + let tempdir = tempfile::tempdir().expect("Failed to create tempdir"); let store = FileStore::new(tempdir.path()); let file: &[u8] = include_bytes!("./file.rs"); @@ -370,7 +370,7 @@ mod tests { #[tokio::test] #[tracing_test::traced_test] async fn test_streaming_read_write() { - let tempdir = tempdir::TempDir::new("file").expect("Failed to create tempdir"); + let tempdir = tempfile::tempdir().expect("Failed to create tempdir"); let store = FileStore::new(tempdir.path()); let file: &[u8] = include_bytes!("./file.rs"); |