Gateway: avoid writing host config in tools invoke test
This commit is contained in:
parent
dda8a2b238
commit
476f367cf1
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,6 @@ import type { IncomingMessage, ServerResponse } from "node:http";
|
||||||
import { promises as fs } from "node:fs";
|
import { promises as fs } from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import { CONFIG_PATH } from "../config/config.js";
|
|
||||||
import { createTestRegistry } from "../test-utils/channel-plugins.js";
|
import { createTestRegistry } from "../test-utils/channel-plugins.js";
|
||||||
import { resetTestPluginRegistry, setTestPluginRegistry, testState } from "./test-helpers.mocks.js";
|
import { resetTestPluginRegistry, setTestPluginRegistry, testState } from "./test-helpers.mocks.js";
|
||||||
import { installGatewayTestHooks, getFreePort, startGatewayServer } from "./test-helpers.server.js";
|
import { installGatewayTestHooks, getFreePort, startGatewayServer } from "./test-helpers.server.js";
|
||||||
|
|
@ -91,6 +90,7 @@ describe("POST /tools/invoke", () => {
|
||||||
list: [{ id: "main" }],
|
list: [{ id: "main" }],
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
|
const { CONFIG_PATH } = await import("../config/config.js");
|
||||||
await fs.mkdir(path.dirname(CONFIG_PATH), { recursive: true });
|
await fs.mkdir(path.dirname(CONFIG_PATH), { recursive: true });
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
CONFIG_PATH,
|
CONFIG_PATH,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue