Skip to content

Commit

Permalink
fix: specifically set mtime of METADATA, to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager committed Dec 3, 2024
1 parent 7add9f5 commit 4c76659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install_pypi/plan/test/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl MockedSitePackages {
std::fs::write(dist_info.join("METADATA"), minimal_metadata)
.expect("could not write METADATA");
// Set the modification time to the current time
std::fs::File::open(&dist_info.join("METADATA"))
std::fs::File::open(dist_info.join("METADATA"))
.expect("should open METADATA")
.set_modified(std::time::SystemTime::now())
.expect("should set modified time");
Expand Down

0 comments on commit 4c76659

Please sign in to comment.