mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 02:58:29 +00:00
test: widen provider header timeout margin (#30427)
This commit is contained in:
parent
c466d32bdb
commit
42a35385b0
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ const it = testEffect(
|
|||
it.live("headerTimeout does not abort delayed SSE body after headers arrive", () =>
|
||||
Effect.gen(function* () {
|
||||
const server = yield* Effect.acquireRelease(
|
||||
Effect.promise(() => delayedBodyServer(250)),
|
||||
Effect.promise(() => delayedBodyServer(1_000)),
|
||||
(server) => Effect.sync(() => server.server.close()),
|
||||
)
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ it.live("headerTimeout does not abort delayed SSE body after headers arrive", ()
|
|||
|
||||
expect(yield* Effect.promise(() => result.text)).toBe("late")
|
||||
}),
|
||||
{ config: providerConfig(server.url, { headerTimeout: 50 }) },
|
||||
{ config: providerConfig(server.url, { headerTimeout: 500 }) },
|
||||
)
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue