Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
twitu committed Mar 25, 2024
1 parent 600e197 commit aedcd0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs-storage/src/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ impl FileStorage {
#[cfg(test)]
mod tests {
use std::collections::BTreeMap;
use tempfile::TempDir;
use tempdir::TempDir;

use crate::file_storage::FileStorage;

#[test]
fn test_file_storage_write_read() {
let temp_dir =
TempDir::new().expect("Failed to create temporary directory");
TempDir::new("tmp").expect("Failed to create temporary directory");
let storage_path = temp_dir.path().join("test_storage.txt");

let mut file_storage =
Expand All @@ -200,7 +200,7 @@ mod tests {
#[test]
fn test_file_storage_auto_delete() {
let temp_dir =
TempDir::new().expect("Failed to create temporary directory");
TempDir::new("tmp").expect("Failed to create temporary directory");
let storage_path = temp_dir.path().join("test_storage.txt");

let mut file_storage =
Expand Down

0 comments on commit aedcd0f

Please sign in to comment.