T-16: edits made in the worktree
This commit is contained in:
parent
e0e9f95333
commit
6fc3f8cd5c
1 changed files with 6 additions and 5 deletions
11
libs/core/cache/test/redis-cache.test.ts
vendored
11
libs/core/cache/test/redis-cache.test.ts
vendored
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue