style(gateway): satisfy biome
This commit is contained in:
@@ -2078,7 +2078,11 @@ describe("gateway server", () => {
|
|||||||
test("chat.abort returns aborted=false for unknown runId", async () => {
|
test("chat.abort returns aborted=false for unknown runId", async () => {
|
||||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdis-gw-"));
|
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdis-gw-"));
|
||||||
testSessionStorePath = path.join(dir, "sessions.json");
|
testSessionStorePath = path.join(dir, "sessions.json");
|
||||||
await fs.writeFile(testSessionStorePath, JSON.stringify({}, null, 2), "utf-8");
|
await fs.writeFile(
|
||||||
|
testSessionStorePath,
|
||||||
|
JSON.stringify({}, null, 2),
|
||||||
|
"utf-8",
|
||||||
|
);
|
||||||
|
|
||||||
const { server, ws } = await startServerWithClient();
|
const { server, ws } = await startServerWithClient();
|
||||||
await connectOk(ws);
|
await connectOk(ws);
|
||||||
|
|||||||
@@ -540,9 +540,7 @@ async function refreshHealthSnapshot(_opts?: { probe?: boolean }) {
|
|||||||
return healthRefresh;
|
return healthRefresh;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function startGatewayServer(
|
export async function startGatewayServer(port = 18789): Promise<GatewayServer> {
|
||||||
port = 18789,
|
|
||||||
): Promise<GatewayServer> {
|
|
||||||
const host = "127.0.0.1";
|
const host = "127.0.0.1";
|
||||||
const httpServer: HttpServer = createHttpServer();
|
const httpServer: HttpServer = createHttpServer();
|
||||||
let bonjourStop: (() => Promise<void>) | null = null;
|
let bonjourStop: (() => Promise<void>) | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user