test: stabilize atomic reindex search mock

This commit is contained in:
Peter Steinberger
2026-01-20 17:50:29 +00:00
parent 80e6c070bf
commit 40968bd5e0

View File

@@ -24,7 +24,7 @@ vi.mock("./embeddings.js", () => {
provider: {
id: "mock",
model: "mock-embed",
embedQuery: async () => [0.1, 0.2, 0.3],
embedQuery: async () => [1, 0, 0],
embedBatch: async (texts: string[]) => {
if (shouldFail) {
throw new Error("embedding failure");