Skip to content

Commit

Permalink
test: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dariocurr committed Aug 6, 2024
1 parent bece144 commit 808a041
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test-env-settings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ mod tests {
.iter()
.for_each(|(key, value)| env::set_var(key, value));
let actual_result = fn_();
env_variables.keys().for_each(env::remove_var);
env_variables
.keys()
.for_each(|env_variable| env::remove_var(env_variable));
assert_result(&actual_result, expected_result);
actual_result
}
Expand All @@ -63,7 +65,9 @@ mod tests {
});
let actual_result = fn_();
fs::remove_file(file_path).expect(TEMP_FILE_ERROR);
env_file_variables.keys().for_each(env::remove_var);
env_file_variables
.keys()
.for_each(|env_file_variable| env::remove_var(env_file_variable));
assert_result(&actual_result, expected_result);
actual_result
}
Expand Down

0 comments on commit 808a041

Please sign in to comment.