Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
test(openai): widen websocket retry timing margin
  • Loading branch information
rekram1-node committed Jun 3, 2026
commit 38a7fd24e2881a8df0b001d4d746e32dbbd65d2f
6 changes: 3 additions & 3 deletions packages/opencode/test/plugin/openai-ws.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,14 @@ describe("plugin.openai.ws-pool", () => {
})
const fetch = OpenAIWebSocketPool.createWebSocketFetch({
url: server.url,
idleTimeout: 200,
idleTimeout: 500,
streamRetries: 1,
})

await new Promise((resolve) => setTimeout(resolve, 100))
await new Promise((resolve) => setTimeout(resolve, 250))
const first = await fetch(server.url, streamRequest())
expect((await readTextError(first.text())).message).toContain("idle timeout waiting for websocket")
await new Promise((resolve) => setTimeout(resolve, 130))
await new Promise((resolve) => setTimeout(resolve, 300))

const second = await fetch(server.url, streamRequest())

Expand Down
Loading