Skip to content

Commit d0a5c4c

Browse files
htemelskiH. Temelski
and
H. Temelski
authored
Fix sentinel csc tests (#2966)
Co-authored-by: H. Temelski <[email protected]>
1 parent f01f101 commit d0a5c4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/client/lib/sentinel/index.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,8 +1029,8 @@ describe.skip('legacy tests', () => {
10291029
await sentinel.get('x');
10301030
await sentinel.get('x');
10311031

1032-
assert.equal(1, csc.cacheMisses());
1033-
assert.equal(3, csc.cacheHits());
1032+
assert.equal(1, csc.stats().missCount);
1033+
assert.equal(3, csc.stats().hitCount);
10341034

10351035
const invalidatePromise = once(csc, 'invalidate');
10361036
await sentinel.set('x', 2);
@@ -1040,8 +1040,8 @@ describe.skip('legacy tests', () => {
10401040
await sentinel.get('x');
10411041
await sentinel.get('x');
10421042

1043-
assert.equal(csc.cacheMisses(), 2);
1044-
assert.equal(csc.cacheHits(), 6);
1043+
assert.equal(csc.stats().missCount, 2);
1044+
assert.equal(csc.stats().hitCount, 6);
10451045
})
10461046
});
10471047
});

0 commit comments

Comments
 (0)