Skip to content

Commit 8ca400c

Browse files
committed
speed up git-pack testing on windows (#301)
It takes more than 60 seconds to run this test, which is odd but for now it seems ok to just dial down the numbers a little.
1 parent 5c1e727 commit 8ca400c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

git-ref/tests/packed/find.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ fn find_speed() -> crate::Result {
175175
let packed = store.open_packed_buffer()?.expect("packed-refs present");
176176
let start = std::time::Instant::now();
177177
let mut num_refs = 0;
178-
for r in packed.iter()?.take(10_000) {
178+
#[cfg(windows)]
179+
let count = 500;
180+
#[cfg(not(windows))]
181+
let count = 10_000;
182+
for r in packed.iter()?.take(count) {
179183
num_refs += 1;
180184
let r = r?;
181185
assert_eq!(

0 commit comments

Comments
 (0)