test: stabilize atomic reindex search mock
This commit is contained in:
@@ -24,7 +24,7 @@ vi.mock("./embeddings.js", () => {
|
|||||||
provider: {
|
provider: {
|
||||||
id: "mock",
|
id: "mock",
|
||||||
model: "mock-embed",
|
model: "mock-embed",
|
||||||
embedQuery: async () => [0.1, 0.2, 0.3],
|
embedQuery: async () => [1, 0, 0],
|
||||||
embedBatch: async (texts: string[]) => {
|
embedBatch: async (texts: string[]) => {
|
||||||
if (shouldFail) {
|
if (shouldFail) {
|
||||||
throw new Error("embedding failure");
|
throw new Error("embedding failure");
|
||||||
|
|||||||
Reference in New Issue
Block a user