Repository navigation
Commit 949e967
committed
test(api): pin the deadline-versus-cancellation classification
New test `completePrompt should report a deadline as TimeoutError rather than AbortError`: the SDK
mock stays pending until the merged timeout signal aborts, then rejects with the SDK's own abort
error - the shape the locked SDK produces. The provider must classify it as a timeout.
Control: disabling the TimeoutError-reason branch makes the assertion fail with
'expected AbortError ... to match object { name: TimeoutError }', so the fix has a real red/green pair.
openai-native.spec 126 passed, tsc --noEmit 0 errors, eslint --max-warnings=0 exit 0.1 parent 2abd8dd commit 949e967
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1882 | 1882 | | |
1883 | 1883 | | |
1884 | 1884 | | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
1885 | 1901 | | |
1886 | 1902 | | |
1887 | 1903 | | |
| |||
0 commit comments