Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

test(benchmark): retry Windows cleanup after bounded git probes

Lum1104165a36363d6e
diff --git a/tests/benchmark/test_large_repo_benchmark.test.mjs b/tests/benchmark/test_large_repo_benchmark.test.mjs
index 58c3fafb..3b341d4f 100644
--- a/tests/benchmark/test_large_repo_benchmark.test.mjs
+++ b/tests/benchmark/test_large_repo_benchmark.test.mjs
@@ -1026,7 +1026,9 @@ describe('Git metadata probes', () => {
afterEach(() => {
for (const path of cleanup.splice(0)) {
- rmSync(path, { recursive: true, force: true });
+ // Git-for-Windows can briefly retain its cwd after ENOBUFS termination.
+ // Retry cleanup rather than failing an otherwise successful bounded probe.
+ rmSync(path, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 });
}
});