You've already forked node-redis
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:
@@ -1029,8 +1029,8 @@ describe.skip('legacy tests', () => {
|
|||||||
await sentinel.get('x');
|
await sentinel.get('x');
|
||||||
await sentinel.get('x');
|
await sentinel.get('x');
|
||||||
|
|
||||||
assert.equal(1, csc.cacheMisses());
|
assert.equal(1, csc.stats().missCount);
|
||||||
assert.equal(3, csc.cacheHits());
|
assert.equal(3, csc.stats().hitCount);
|
||||||
|
|
||||||
const invalidatePromise = once(csc, 'invalidate');
|
const invalidatePromise = once(csc, 'invalidate');
|
||||||
await sentinel.set('x', 2);
|
await sentinel.set('x', 2);
|
||||||
@@ -1040,8 +1040,8 @@ describe.skip('legacy tests', () => {
|
|||||||
await sentinel.get('x');
|
await sentinel.get('x');
|
||||||
await sentinel.get('x');
|
await sentinel.get('x');
|
||||||
|
|
||||||
assert.equal(csc.cacheMisses(), 2);
|
assert.equal(csc.stats().missCount, 2);
|
||||||
assert.equal(csc.cacheHits(), 6);
|
assert.equal(csc.stats().hitCount, 6);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user