Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: align alias failure bounds with reviewed Windows writer retry policy

haelyra1b7cf4e417a6
diff --git a/tests/lib/session-aliases.test.js b/tests/lib/session-aliases.test.js
index 3271dc524..aaf31183a 100644
--- a/tests/lib/session-aliases.test.js
+++ b/tests/lib/session-aliases.test.js
@@ -1240,7 +1240,8 @@ function runTests() {
assert.strictEqual(fs.readFileSync(aliasesPath, 'utf8'), before);
const stagingPaths = [...new Set(staged)];
assert.strictEqual(stagingPaths.length, 2, 'Each write retains one private staging file across retries');
- assert.ok(staged.length >= 2 && staged.length <= 42, 'Publication attempts remain bounded for both writes');
+ const maxAttempts = process.platform === 'win32' ? 162 : 2;
+ assert.ok(staged.length >= 2 && staged.length <= maxAttempts, 'Publication attempts remain bounded for both writes');
assert.deepStrictEqual(fs.readdirSync(path.dirname(aliasesPath)), ['session-aliases.json']);
} finally {
fs.renameSync = originalRename;