test(coverage-audit fixture): disable git auto maintenance so cleanup is not racing a detached git writer

This commit is contained in:
garrytan committed 2026-10-01 19:48:43 +00:00
1 parent ec1871f8cd
commit a1886ad545
1 file changed
+4
+4
View File
@@ -68,6 +68,10 @@ describe('processPayment', () => {
run('git', ['init', '-b', 'main']);
run('git', ['config', 'user.email', 'test@test.com']);
run('git', ['config', 'user.name', 'Test']);
// Git 2.47+ runs auto maintenance detached after commit; it can still be
// writing .git/objects when the caller removes this fixture.
run('git', ['config', 'gc.auto', '0']);
run('git', ['config', 'maintenance.auto', 'false']);
run('git', ['add', '.']);
run('git', ['commit', '-m', 'initial commit']);