test(gateway): keep session event suite minimal

Keep the session message websocket suite on the default minimal gateway harness to avoid full startup for event routing coverage.
This commit is contained in:
Vincent Koc
2026-04-27 22:35:40 -07:00
committed by GitHub
parent 252cc7eccf
commit 27e313053c

View File

@@ -24,11 +24,8 @@ let harness: Awaited<ReturnType<typeof createGatewaySuiteHarness>>;
let subscribedOperatorWs:
| Awaited<ReturnType<Awaited<ReturnType<typeof createGatewaySuiteHarness>>["openWs"]>>
| undefined;
let previousMinimalGateway: string | undefined;
beforeAll(async () => {
previousMinimalGateway = process.env.OPENCLAW_TEST_MINIMAL_GATEWAY;
delete process.env.OPENCLAW_TEST_MINIMAL_GATEWAY;
harness = await createGatewaySuiteHarness();
subscribedOperatorWs = await harness.openWs();
await connectOk(subscribedOperatorWs, {
@@ -43,11 +40,6 @@ afterAll(async () => {
if (harness) {
await harness.close();
}
if (previousMinimalGateway === undefined) {
delete process.env.OPENCLAW_TEST_MINIMAL_GATEWAY;
} else {
process.env.OPENCLAW_TEST_MINIMAL_GATEWAY = previousMinimalGateway;
}
});
afterEach(async () => {