Repository navigation
Commit d8a862c
committed
test(api): stub APIUserAbortError in the friendli openai mock
friendli.spec.ts mocks openai with only the default export, while this branch adds
the APIUserAbortError import at api/providers/utils/error-handler.ts:12 and reads it
in handleOpenAIRequestError at :150 and :160, so vitest's missing-export error
replaced the 401 the test asserts at friendli.spec.ts:104:29 and the thrown boom at
:248 and :266 in CI job 129957461109: 2 failed of 66 for that spec twice at this
head, 66 passed twice at main tip 18861b2, CI ubuntu and local Windows
agreeing exactly. The mock now stubs the export the way the ten sibling provider
specs on this branch already do, rather than production error handling bending
around a test double.1 parent 4072f40 commit d8a862c
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| |||
0 commit comments