Skip to content

Commit

Permalink
Fix Store benchmarks (pantsbuild#20057)
Browse files Browse the repository at this point in the history
Fix the location of `all_the_henries.txt` to allow `Store` benchmarks to
run.
stuhood authored Oct 19, 2023
1 parent 4f8ce29 commit d9f609a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rust/engine/fs/store/benches/store.rs
Original file line number Diff line number Diff line change
@@ -266,8 +266,11 @@ fn tempdir_containing(max_files: usize, file_target_size: usize) -> (TempDir, Ve
let henries_lines = {
let f = std::fs::File::open(
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("testdata")
.join("all_the_henries"),
.join("..")
.join("..")
.join("testutil")
.join("src")
.join("all_the_henries.txt"),
)
.expect("Error opening all_the_henries");
BufReader::new(f).lines()

0 comments on commit d9f609a

Please sign in to comment.