From eebf334b4021f646e7a88c9bcea781b1dd625ef4 Mon Sep 17 00:00:00 2001 From: BB-fat <1056871944@qq.com> Date: Wed, 19 Aug 2026 03:50:04 +0000 Subject: [PATCH] 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. --- packages/dsh-plugin-browserskill/tests/observation.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dsh-plugin-browserskill/tests/observation.test.ts b/packages/dsh-plugin-browserskill/tests/observation.test.ts index e67f768..aa1e5d7 100644 --- a/packages/dsh-plugin-browserskill/tests/observation.test.ts +++ b/packages/dsh-plugin-browserskill/tests/observation.test.ts @@ -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 { +async function waitFor(cond: () => boolean, timeoutMs = 10_000): Promise { const start = Date.now(); while (!cond()) { if (Date.now() - start > timeoutMs) throw new Error("waitFor timeout");