Skip to content

Commit 7dd58b8

Browse files
committed
be more generous with mem::usage() expected peak
For some reason, this varies wildly, from 80 to 120 easily. No flakiness please, I think previously, while there was a bug, the memory usage was way higher than that, so it's still a valid test to prevent regressions
1 parent ed66357 commit 7dd58b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-config/tests/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn usage() {
2727
peak = ByteSize(ALLOCATOR.max_allocated() as u64),
2828
);
2929
assert!(
30-
used < 80 * 1024 * 1024,
30+
used < 200 * 1024 * 1024,
3131
"we should now start using more memory than anticipated, to keep mem-amplification low"
3232
);
3333
}

0 commit comments

Comments
 (0)