mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-16 21:31:58 +01:00
test(coverage-audit fixture): disable git auto maintenance so cleanup is not racing a detached git writer
This commit is contained in:
1 parent
ec1871f8cd
commit
a1886ad545
1 file changed
+4
+4
@@ -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']);
|
||||
|
||||
|
||||
Reference in new issue
Block a user