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(metrics): make snapshot mode assertion portable

wellkiloc2405149f7aa
diff --git a/tests/lib/session-cost-snapshot.test.js b/tests/lib/session-cost-snapshot.test.js
index a41165ba4..153c2e932 100644
--- a/tests/lib/session-cost-snapshot.test.js
+++ b/tests/lib/session-cost-snapshot.test.js
@@ -46,7 +46,9 @@ try {
assert.strictEqual(appendSessionCostRow(root, 'session-1', current), true);
const filePath = getCostSnapshotPath(root, 'session-1');
assert.deepStrictEqual(readSessionCostSnapshot(root, 'session-1').row, current);
- assert.strictEqual(fs.statSync(filePath).mode & 0o777, 0o600);
+ if (process.platform !== 'win32') {
+ assert.strictEqual(fs.statSync(filePath).mode & 0o777, 0o600);
+ }
assert.deepStrictEqual(
fs.readdirSync(path.dirname(filePath)).filter(name => name.endsWith('.tmp')),
[]