test: index MCP HTTP fixture before query
This commit is contained in:
parent
b32ee4e660
commit
669e234d1e
@ -1537,6 +1537,19 @@ describe("mcp http daemon", () => {
|
||||
);
|
||||
expect(addResult.exitCode).toBe(0);
|
||||
|
||||
const updateResult = await runQmd(
|
||||
["--index", customIndex, "update"],
|
||||
{
|
||||
dbPath: daemonDbPath,
|
||||
configDir: customConfigDir,
|
||||
env: {
|
||||
INDEX_PATH: "",
|
||||
XDG_CACHE_HOME: customCacheDir,
|
||||
},
|
||||
},
|
||||
);
|
||||
expect(updateResult.exitCode).toBe(0);
|
||||
|
||||
const port = randomPort();
|
||||
const proc = spawnHttpServer(port, {
|
||||
args: ["--index", customIndex],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user