Session 7b: Fix pipeline - body parser, Redis queueing, poller visibility, auto-start

This commit is contained in:
Kev
2026-06-10 01:22:55 -04:00
parent b0890dadae
commit 5c44922937
11 changed files with 322 additions and 27 deletions
+2 -2
View File
@@ -37,12 +37,12 @@ describe('redis client URL handling', () => {
expect(mockCtor.mock.calls[0][0]).toBe('redis://127.0.0.1:6379');
});
test('passes enableOfflineQueue=false so degraded mode fails fast', () => {
test('passes enableOfflineQueue=true so early commands queue until READY', () => {
process.env.REDIS_URL = 'redis://localhost:6379';
const { getRedisClient } = require('../../src/utils/redis');
getRedisClient();
expect(mockCtor.mock.calls[0][1]).toMatchObject({
enableOfflineQueue: false,
enableOfflineQueue: true,
maxRetriesPerRequest: 1,
});
});