From 8408e670fe6fe690b74c31729ae80e4293cf7608 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Fri, 11 Sep 2026 18:52:42 +0200 Subject: [PATCH] test: give the W4 concurrency test a real ceiling --- test/trigger-watcher.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/trigger-watcher.test.js b/test/trigger-watcher.test.js index a8253563..bfb2e75c 100644 --- a/test/trigger-watcher.test.js +++ b/test/trigger-watcher.test.js @@ -590,9 +590,10 @@ test('W4 concurrency cap: 12 simultaneous triggers all get processed', async () writeTrigger(tmp, uuid, { sessionId: 'sess-' + uuid, command: '/compact' }); } - // Wait for all 12 result files + // Wait for all 12 result files. Ceiling only: 12 triggers through + // MAX_INFLIGHT with real submit-verify windows take 4-6 s on an idle box. await Promise.all(uuids.map(uuid => - waitForFile(path.join(tmp, 'processed', uuid + '.result.json'), 5000), + waitForFile(path.join(tmp, 'processed', uuid + '.result.json'), 20000), )); // All 12 should be ok:true