Skip to content

Commit fc94a86

Browse files
committed
test: fix lint errors in query-registry tests
1 parent d2473ee commit fc94a86

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/agents/mcp-query-registry.test.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function makeTempFixture(tempDirs: { make: (prefix: string) => string }) {
4343
const serverPath = path.join(tempDir, "query-registry-server.mjs");
4444
const logPath = path.join(tempDir, "server.log");
4545
await writeQueryRegistryMcpServer(serverPath, { logPath });
46-
return { tempDir, serverPath, logPath };
46+
return { serverPath };
4747
}
4848

4949
async function expectTextContentBlock(block: unknown, text: string) {
@@ -61,13 +61,13 @@ describe("MCP query-registry workflow", () => {
6161
});
6262

6363
it("discovers the four query-registry tools in the catalog", async () => {
64-
const { tempDir, serverPath } = await makeTempFixture(tempDirs);
64+
const { serverPath } = await makeTempFixture(tempDirs);
6565
const sessionKey = `agent:test:query-registry:${sessionSeq++}`;
6666
const runtime = await createQueryRegistryRuntime({ serverPath, sessionKey });
6767

6868
try {
6969
const catalog = await runtime.getCatalog();
70-
const toolNames = catalog.tools.map((tool) => tool.toolName).sort();
70+
const toolNames = catalog.tools.map((tool) => tool.toolName).toSorted();
7171
expect(toolNames).toEqual([
7272
QUERY_REGISTRY_TOOLS.CONTEXT,
7373
QUERY_REGISTRY_TOOLS.QUERIES_LIST,
@@ -80,7 +80,7 @@ describe("MCP query-registry workflow", () => {
8080
});
8181

8282
it("executes the happy path: context -> list -> describe -> execute", async () => {
83-
const { tempDir, serverPath } = await makeTempFixture(tempDirs);
83+
const { serverPath } = await makeTempFixture(tempDirs);
8484
const sessionKey = `agent:test:query-registry:${sessionSeq++}`;
8585
const runtime = await createQueryRegistryRuntime({ serverPath, sessionKey });
8686

@@ -147,7 +147,7 @@ describe("MCP query-registry workflow", () => {
147147
});
148148

149149
it("rejects execute when the query has not been described", async () => {
150-
const { tempDir, serverPath } = await makeTempFixture(tempDirs);
150+
const { serverPath } = await makeTempFixture(tempDirs);
151151
const sessionKey = `agent:test:query-registry:${sessionSeq++}`;
152152
const runtime = await createQueryRegistryRuntime({ serverPath, sessionKey });
153153

@@ -178,7 +178,7 @@ describe("MCP query-registry workflow", () => {
178178
});
179179

180180
it("rejects execute with missing params", async () => {
181-
const { tempDir, serverPath } = await makeTempFixture(tempDirs);
181+
const { serverPath } = await makeTempFixture(tempDirs);
182182
const sessionKey = `agent:test:query-registry:${sessionSeq++}`;
183183
const runtime = await createQueryRegistryRuntime({ serverPath, sessionKey });
184184

@@ -198,7 +198,7 @@ describe("MCP query-registry workflow", () => {
198198
});
199199

200200
it("rejects describe for an unknown query id", async () => {
201-
const { tempDir, serverPath } = await makeTempFixture(tempDirs);
201+
const { serverPath } = await makeTempFixture(tempDirs);
202202
const sessionKey = `agent:test:query-registry:${sessionSeq++}`;
203203
const runtime = await createQueryRegistryRuntime({ serverPath, sessionKey });
204204

0 commit comments

Comments
 (0)