Skip to content

Commit

Permalink
fix(bench): fix git benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
n-dusan committed Jan 26, 2024
1 parent cf8cf6e commit fd3a3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/git_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use stelae::utils::git::Repo;
/// get the path to the test archive at `$REPO_ROOT/tests/fixtures/archive`.
fn get_test_archive_path() -> PathBuf {
let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
path.push("tests/fixtures/archive");
path.push("tests/fixtures/basic/archive");
path
}

Expand All @@ -39,7 +39,7 @@ fn bench_repo() {
let test_archive_path = get_test_archive_path();
let repo = Repo::new(&test_archive_path, "test", "law-html")
.expect("Something went wrong creating the repo");
repo.get_bytes_at_path("ed782e08d119a580baa3067e2ea5df06f3d1cd05", "a/b/c.html")
repo.get_bytes_at_path("4ba432f61eec15194db527548be4cbc0105635b9", "a/b/c.html")
.expect("Something went wrong calling `get_bytes_at_path`");
}

Expand Down

0 comments on commit fd3a3ed

Please sign in to comment.