1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Fix sentinel csc tests (#2966)

Co-authored-by: H. Temelski <hristo.temelski@redis.com>
This commit is contained in:
Hristo Temelski
2025-05-20 11:04:11 +03:00
committed by GitHub
parent f01f1014cb
commit d0a5c4c945

View File

@@ -1029,8 +1029,8 @@ describe.skip('legacy tests', () => {
await sentinel.get('x');
await sentinel.get('x');
assert.equal(1, csc.cacheMisses());
assert.equal(3, csc.cacheHits());
assert.equal(1, csc.stats().missCount);
assert.equal(3, csc.stats().hitCount);
const invalidatePromise = once(csc, 'invalidate');
await sentinel.set('x', 2);
@@ -1040,8 +1040,8 @@ describe.skip('legacy tests', () => {
await sentinel.get('x');
await sentinel.get('x');
assert.equal(csc.cacheMisses(), 2);
assert.equal(csc.cacheHits(), 6);
assert.equal(csc.stats().missCount, 2);
assert.equal(csc.stats().hitCount, 6);
})
});
});