T-16: edits made in the worktree

This commit is contained in:
Studio 2026-11-27 12:21:58 -05:00
parent e0e9f95333
commit 6fc3f8cd5c

View file

@ -45,10 +45,8 @@ describe.skipIf(!testRedisUrl)('RedisCache', () => {
if (!cache) return;
try {
await cache.clear();
} catch {
// Ignore cleanup errors if Redis is unreachable or already disconnected
} finally {
await cache.disconnect().catch(() => {});
await cache.disconnect();
}
});
@ -197,8 +195,11 @@ describe.skipIf(!testRedisUrl)('RedisCache', () => {
const stats = badCache.getStats();
expect(stats.misses).toBe(1);
} finally {
await badCache.clear().catch(() => {});
await badCache.disconnect().catch(() => {});
try {
await badCache.clear();
} finally {
await badCache.disconnect();
}
}
});
});