Session 21: All adapters through gateway, ntfy alerts, provider registry correction (1486 tests)
This commit is contained in:
@@ -9,6 +9,11 @@ jest.mock('../../src/utils/redis', () => ({
|
||||
cacheGet: async (k) => mockCache.current.get(k) ?? null,
|
||||
cacheSet: async (k, v) => { mockCache.current.set(k, v); return true; },
|
||||
cacheDel: async (k) => { mockCache.current.delete(k); return true; },
|
||||
// Session 21 — gateway pulls isDegraded to decide whether to track
|
||||
// the call. Returning true here puts the gateway in degraded-mode
|
||||
// fail-open so the adapter's existing cache-and-axios assertions
|
||||
// stay accurate (no extra Redis writes for the quota counter).
|
||||
isDegraded: () => true,
|
||||
}));
|
||||
|
||||
const adapter = require('../../src/services/adapters/parlayApiAdapter');
|
||||
|
||||
Reference in New Issue
Block a user