Skip to content

Commit 31d686e

Browse files
committed
fix(cli-smoke): add missing count() mock method (Issue CortexReach#596)
The mock store in cli-smoke.mjs was missing the async count() method that the real store interface provides. This caused the assertion at line ~316 to fail with undefined !== 1 when recallResult.details.count was accessed. This is a pre-existing issue introduced by the lifecycle-aware memory decay commit, not related to PR CortexReach#516.
1 parent 2bdfb25 commit 31d686e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/cli-smoke.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ async function runCliSmoke() {
300300
},
301301
store: {
302302
async patchMetadata() {},
303+
async count() { return 1; },
303304
},
304305
scopeManager: {
305306
getAccessibleScopes() {

0 commit comments

Comments
 (0)