Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Sep 12, 2024
1 parent 9f9bf0d commit 62f7700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/valid_config_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ fn test_new_default() {
}
};

// This is a hack because we need a file that doesn't exist, and this hopefully means we avoid a bit of TOCTOU...?
let actual_temp_default_path = new_temp_default_path.join("_test_test_test_test");
// This is a hack because we need a temp file that doesn't exist.
let actual_temp_default_path = new_temp_default_path.to_path_buf();
new_temp_default_path.close().unwrap();

if !actual_temp_default_path.exists() {
Expand Down

0 comments on commit 62f7700

Please sign in to comment.