Stop background git maintenance in test fixture repos and wait for the notepad to finish drawing before asserting, so npm test passes on CI runners

AI Assisted
This commit is contained in:
jparkerweb committed 2026-10-26 20:46:03 -07:00
1 parent dd2ab86584
commit 5043b424cf
2 files changed
+18 -3

No files matched your search

+5
View File
@@ -99,6 +99,11 @@ export function gitInit(dir, branch = "main") {
g("config", "user.email", "t@example.com");
g("config", "user.name", "Test");
g("config", "commit.gpgsign", "false");
// No background maintenance after a commit: on macOS it held
// .git/objects/maintenance.lock while copyFixture copied the template, and
// the copy failed with ENOENT once the lock was gone.
g("config", "maintenance.auto", "false");
g("config", "gc.auto", "0");
return g;
}