Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/trigger-watcher.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading