mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user