Repository navigation
Commit 0a23408
committed
test(poe): poll the timeout instead of sleeping in the abort-ordering test
Upstream adds a no-restricted-globals rule for setTimeout under
api/**/__tests__/**/*.spec.ts ("Poll with vi.waitFor on the observable condition"),
and the merged-ref lint job enforces it, so this branch's fixed 40 ms sleep in
"keeps TimeoutError when the timeout fires before a later caller abort and late
result" fails compile. The observable condition is available: the merged signal
aborting IS the 20 ms per-request timeout firing, so the SDK double now polls
that (the house pattern, e.g. request-config-builder.spec.ts:408) before the
caller aborts and the result settles late. Ordering is pinned rather than timed.
api/providers/__tests__/poe.spec.ts: 43/43 green; src tsc --noEmit and eslint
--max-warnings=0 clean; no suppression added.1 parent 27b0fea commit 0a23408
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
816 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
817 | 819 | | |
818 | 820 | | |
819 | 821 | | |
| |||
0 commit comments