The design language that makes your AI harness better at design.
JavaScript
Retry the doctor-test scratch cleanup to kill a Node 22 CI flake
Paul Bakausf3a6bb5a384c
diff --git a/tests/doctor.test.mjs b/tests/doctor.test.mjsindex f46c481db..2e120e4c2 100644--- a/tests/doctor.test.mjs+++ b/tests/doctor.test.mjs@@ -39,7 +39,11 @@ beforeEach(() => {});afterEach(() => {- fs.rmSync(scratch, { recursive: true, force: true });+ // These tests run real git subprocesses in the scratch dir; on Node 22 a+ // recursive delete can race git's object writes and fail the whole test+ // with ENOTEMPTY (seen in CI). maxRetries/retryDelay make rmSync retry+ // exactly those transient errors.+ fs.rmSync(scratch, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 });});function write(rel, body) {