Skip to content

Commit a2125e3

Browse files
committed
fix(test): widen eventuallyEffect and subprocess timeouts under load (#163)
Port fix from #202: - Bump eventuallyEffect timeout in workspace.test.ts from 1500ms to 5000ms to provide headroom for workspace sync transitions and SSE events under load. - Bump subprocess timeout in run-process.test.ts from 30s to 60s matching the test harness default.
1 parent 5271863 commit a2125e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/opencode/test/cli/run/run-process.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe("opencode run (non-interactive subprocess)", () => {
175175
})
176176
expect(result.stdout.split("\n").filter(Boolean)).toHaveLength(1)
177177
}),
178-
30_000,
178+
60_000,
179179
)
180180

181181
cliIt.concurrent(

‎packages/opencode/test/control-plane/workspace.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function expectExitContains(exit: Exit.Exit<unknown, unknown>, ...messages: stri
155155
for (const message of messages) expect(String(exit.cause)).toContain(message)
156156
}
157157

158-
function eventuallyEffect(effect: Effect.Effect<void>, timeout = 1500) {
158+
function eventuallyEffect(effect: Effect.Effect<void>, timeout = 5000) {
159159
return Effect.gen(function* () {
160160
const started = Date.now()
161161
let last: unknown

0 commit comments

Comments
 (0)