diff --git a/tests/test_core.py b/tests/test_core.py index 4d2fc9b..0487296 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -75,7 +75,9 @@ class Core(unittest.TestCase): def project(self, name): path = os.path.join(self.tmp, name) os.makedirs(path) - for args in (["init", "-q"], ["-c", "user.name=t", "-c", "user.email=t@t", "commit", "-q", "--allow-empty", "-m", "start"]): + # no background upkeep: the commit starts a detached `git gc`, which prunes a test's fake .git/worktrees folders later, under load + for args in (["init", "-q"], ["config", "gc.auto", "0"], ["config", "maintenance.auto", "false"], + ["-c", "user.name=t", "-c", "user.email=t@t", "commit", "-q", "--allow-empty", "-m", "start"]): subprocess.run(["git"] + args, cwd=path, check=True, capture_output=True) return path