test(gateway): align config constants in auth test
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { describe, expect, test } from "vitest";
|
import { describe, expect, test } from "vitest";
|
||||||
import { WebSocket } from "ws";
|
import { WebSocket } from "ws";
|
||||||
import { CONFIG_PATH_CLAWDIS, STATE_DIR_CLAWDIS } from "../config/config.js";
|
|
||||||
import { PROTOCOL_VERSION } from "./protocol/index.js";
|
import { PROTOCOL_VERSION } from "./protocol/index.js";
|
||||||
import {
|
import {
|
||||||
connectReq,
|
connectReq,
|
||||||
@@ -33,6 +32,9 @@ describe("gateway server auth/connect", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
test("connect (req) handshake returns hello-ok payload", async () => {
|
test("connect (req) handshake returns hello-ok payload", async () => {
|
||||||
|
const { CONFIG_PATH_CLAWDIS, STATE_DIR_CLAWDIS } = await import(
|
||||||
|
"../config/config.js"
|
||||||
|
);
|
||||||
const port = await getFreePort();
|
const port = await getFreePort();
|
||||||
const server = await startGatewayServer(port);
|
const server = await startGatewayServer(port);
|
||||||
const ws = new WebSocket(`ws://127.0.0.1:${port}`);
|
const ws = new WebSocket(`ws://127.0.0.1:${port}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user