Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cernicc committed Nov 25, 2024
1 parent d79083f commit 627b76b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mater/cli/src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod tests {
async fn extract_file_success() -> Result<()> {
// Setup input and output paths
let temp_dir = tempdir()?;
let input_path = PathBuf::from("../mater/tests/fixtures/car_v2/lorem.car");
let input_path = PathBuf::from("../lib/tests/fixtures/car_v2/lorem.car");
let output_path = temp_dir.path().join("output_file");

// Call the function under test
Expand All @@ -59,7 +59,7 @@ mod tests {
assert!(result.is_ok());

// extract original contents
let mut original = File::open("../mater/tests/fixtures/original/lorem.txt").await?;
let mut original = File::open("../lib/tests/fixtures/original/lorem.txt").await?;
let mut original_contents = vec![];
original.read_to_end(&mut original_contents).await?;

Expand All @@ -82,7 +82,7 @@ mod tests {
async fn extract_file_success_empty_file() -> Result<()> {
// Setup input and output paths
let temp_dir = tempdir()?;
let input_path = PathBuf::from("../mater/tests/fixtures/car_v2/empty.car");
let input_path = PathBuf::from("../lib/tests/fixtures/car_v2/empty.car");
let output_path = temp_dir.path().join("output_file");

// Call the function under test
Expand Down Expand Up @@ -127,7 +127,7 @@ mod tests {
#[tokio::test]
async fn io_error_extract_output_path_exists() -> Result<()> {
// Setup input and output paths
let input_path = PathBuf::from("../mater/tests/fixtures/car_v2/lorem.car");
let input_path = PathBuf::from("../lib/tests/fixtures/car_v2/lorem.car");
let output_path = PathBuf::from("output_file");

// Create a file at ouput path
Expand Down

0 comments on commit 627b76b

Please sign in to comment.