test(memory): fix sqlite busy mock to match implementation

This commit is contained in:
vignesh07 2026-02-20 20:25:31 -08:00 committed by Vignesh
parent cd6bbe8cea
commit e90eedb0ae
1 changed files with 2 additions and 2 deletions

View File

@ -1298,12 +1298,12 @@ describe("QmdMemoryManager", () => {
it("throws when sqlite index is busy", async () => {
const { manager } = await createManager();
const inner = manager as unknown as {
db: { prepare: () => { get: () => never }; close: () => void } | null;
db: { prepare: () => { all: () => never }; close: () => void } | null;
resolveDocLocation: (docid?: string) => Promise<unknown>;
};
inner.db = {
prepare: () => ({
get: () => {
all: () => {
throw new Error("SQLITE_BUSY: database is locked");
},
}),