fix(core): report retry timeouts clearly

This commit is contained in:
Patrick Wozniak
2026-06-02 10:30:32 +02:00
parent e760a760fe
commit 221677b5ba
2 changed files with 15 additions and 2 deletions
+3
View File
@@ -318,6 +318,9 @@ describe("streamCommandCode — timeout", () => {
// initial + 1 retry = 2
assert.equal(server.requestCount(), 2)
assert.deepEqual(eventTypes(events), ["start", "error"])
const error = events.at(-1)
if (error?.type !== "error") throw new Error("expected error")
assert.match(error.error.errorMessage ?? "", /timed out after 50ms/)
})
})