Skip to content

Commit

Permalink
test: Adjust tests to result packaging to tar
Browse files Browse the repository at this point in the history
  • Loading branch information
zsofiak96 committed Dec 3, 2023
1 parent 51cccce commit ad37483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/software_tests/return_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn truncate_result() -> TestResult {
command::handle_command(&mut com, &mut exec);
assert!(com.is_complete());

assert!(std::fs::File::open("./data/8_5.zip")?.metadata()?.len() < 1_001_000);
assert!(std::fs::File::open("./data/8_5.tar")?.metadata()?.len() < 1_001_000);

common::cleanup("8");
Ok(())
Expand Down Expand Up @@ -119,7 +119,7 @@ fn stopped_return() -> TestResult {
command::handle_command(&mut com, &mut exec);
assert!(com.is_complete());

assert!(std::fs::File::open("./data/9_5.zip").is_ok());
assert!(std::fs::File::open("./data/9_5.tar").is_ok());

common::cleanup("9");
Ok(())
Expand Down Expand Up @@ -159,7 +159,7 @@ fn result_is_not_deleted_after_corrupted_transfer() -> TestResult {
command::handle_command(&mut com, &mut exec);
assert!(com.is_complete());

assert!(std::fs::File::open("./data/50_0.zip").is_ok());
assert!(std::fs::File::open("./data/50_0.tar").is_ok());

common::cleanup("50");
Ok(())
Expand Down

0 comments on commit ad37483

Please sign in to comment.