From 7ccfda9e25f0489fcefd93cdc27acb472c4eeb83 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Fri, 20 Mar 2026 07:30:52 -0700 Subject: [PATCH] fix: skip flaky observer shell test on Windows (#722) --- tests/hooks/observer-memory.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hooks/observer-memory.test.js b/tests/hooks/observer-memory.test.js index c2147f26..c441f436 100644 --- a/tests/hooks/observer-memory.test.js +++ b/tests/hooks/observer-memory.test.js @@ -216,6 +216,10 @@ test('counter file handles missing/corrupt file gracefully', () => { console.log('\n--- observe.sh end-to-end throttle (shell execution) ---'); test('observe.sh creates counter file and increments on each call', () => { + if (process.platform === 'win32') { + return; + } + // This test runs observe.sh with minimal input to verify counter behavior. // We need python3, bash, and a valid project dir to test the full flow. // We use ECC_SKIP_OBSERVE=0 and minimal JSON so observe.sh processes but