Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
Potential fix for pull request finding 'CodeQL / Unused variable, import, function or class'
Diego Zacarias4d7a8095f0c2
diff --git a/control-api/test/routes.adminRemoteMcp.test.ts b/control-api/test/routes.adminRemoteMcp.test.tsindex c0d4e4ed9..adc3d6be9 100644--- a/control-api/test/routes.adminRemoteMcp.test.ts+++ b/control-api/test/routes.adminRemoteMcp.test.ts@@ -1228,7 +1228,7 @@ describe('POST /admin/mcp-servers/remote — DCR install saga (C2)', () => {// `in-use`. The row stays byte-identical; the throwaway client we minted is revoked.it('TOCTOU: a live CR appears after the pre-check → 409 server_name_in_use via the INSERT fence, row untouched', async () => {vi.mocked(discoverRemoteOAuth).mockResolvedValue({ ok: true, result: dcrConfidentialResult })- const { db, rows } = makeInMemoryDynamicClientsDb()+ const { db } = makeInMemoryDynamicClientsDb()const seededInstall = randomUUID()await insertDynamicClientPending(db, ENC_KEY, {...LIVE_ROW,