mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-04 16:59:52 +00:00
test(opencode): align retry free limit tests
This commit is contained in:
parent
767e17fbdc
commit
593fb51a07
1 changed files with 4 additions and 4 deletions
|
|
@ -280,8 +280,8 @@ describe("session.retry.retryable", () => {
|
|||
})
|
||||
|
||||
test("maps free limits for Go subscribers to Go provider action", () => {
|
||||
const error = Schema.decodeUnknownSync(MessageV2.APIError.Schema)(
|
||||
new MessageV2.APIError({
|
||||
const error = Schema.decodeUnknownSync(SessionLegacy.APIError.Schema)(
|
||||
new SessionLegacy.APIError({
|
||||
message: "Free usage exceeded",
|
||||
isRetryable: true,
|
||||
statusCode: 429,
|
||||
|
|
@ -308,8 +308,8 @@ describe("session.retry.retryable", () => {
|
|||
})
|
||||
|
||||
test("maps free limits with credits to paid model action", () => {
|
||||
const error = Schema.decodeUnknownSync(MessageV2.APIError.Schema)(
|
||||
new MessageV2.APIError({
|
||||
const error = Schema.decodeUnknownSync(SessionLegacy.APIError.Schema)(
|
||||
new SessionLegacy.APIError({
|
||||
message: "Free usage exceeded",
|
||||
isRetryable: true,
|
||||
statusCode: 429,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue