Repository navigation
Commit f5c2cce
committed
test(requesty): make the effort-filter and deadline tests fail when the guard is removed
Negative reasoning-effort test: the fixture declared supportsReasoningEffort without "minimal",
so shouldUseReasoningEffort rejected the settings effort before the request reached Requesty's
allowedEffort filter - deleting that filter kept the suite green (verified: old fixture + removed
filter passes). The fixture now declares ["minimal", "low", "medium", "high"] so "minimal" reaches
the filter, and removing the filter now fails with 'expected { ...(10) } to not have property
reasoning_effort'.
Deadline test: asserts AbortSignal.timeout was called with 10_000 and that the discovery promise
is still unsettled at 9,999 ms. Lowering REQUESTY_MODELS_TIMEOUT_MS to 5_000 now fails the test
('expected "timeout" to be called with arguments: [10000], received 5000') instead of silently
producing the same fallback and log.1 parent 0f18f74 commit f5c2cce
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
309 | 319 | | |
310 | | - | |
| 320 | + | |
311 | 321 | | |
312 | 322 | | |
313 | 323 | | |
| |||
0 commit comments