fix(dsh-plugin): give observation waitFor more room on CI

The thumbnail read-back test timed out at the 2s waitFor budget under
CI load even though capture completed shortly after.
This commit is contained in:
BB-fat
2026-08-19 03:50:14 +00:00
parent a284ffc5ae
commit eebf334b40
@@ -145,7 +145,7 @@ function own(registry: SessionRegistry, sessionId: string): void {
}
/** Poll until the condition holds (capture completion is real async I/O). */
async function waitFor(cond: () => boolean, timeoutMs = 2000): Promise<void> {
async function waitFor(cond: () => boolean, timeoutMs = 10_000): Promise<void> {
const start = Date.now();
while (!cond()) {
if (Date.now() - start > timeoutMs) throw new Error("waitFor timeout");