Paijo
|
89c52d4f04
|
fix: resolve pre-existing test failures (env sync, PII, quota, sidebar) (#3039)
Integrated into release/v3.8.8. 9 legit test alignments + 34 new test files kept; restored 5 masked assertions (sk_ key redaction, circular/SSN redaction, T24 wait-log, THEORY-004 SSE, relay handoff) to strict/meaningful checks. Thanks @oyi77!
|
2026-06-01 14:52:50 -03:00 |
|
diegosouzapw
|
d78e33858d
|
test(quota): cover enforce 7 scenarios + spendRecorder fail-open (B/F7)
quota-enforce.test.ts — 8 assertions:
- Scenarios 1/7: fail-open when DB unavailable (no pool, store errors).
- Scenarios 2-6: generous/strict/soft/burst/cap-absolute via fairShare integration.
- Extra: Promise.all with multiple inputs always resolves to valid kind shape.
quota-spend-recorder.test.ts — 5 assertions:
- Fire-and-forget timing, silent no-op for unknown keys, rejection catch,
no-logger path, usd cost type accepted.
|
2026-05-27 22:17:44 -03:00 |
|