Skip to content

Commit b694ee1

Browse files
authored
perf(test): skip idle gateway session servers (#123580)
1 parent d19c755 commit b694ee1

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/gateway/server.sessions.create.projects.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { closeOpenClawStateDatabaseForTest } from "../state/openclaw-state-db.js
1111
import { testState } from "./test-helpers.js";
1212
import {
1313
directSessionReq,
14-
setupGatewaySessionsTestHarness,
14+
setupGatewaySessionsHandlerTestHarness,
1515
} from "./test/server-sessions.test-helpers.js";
1616

1717
const execFileAsync = promisify(execFile);
1818
const tempDirs = useAutoCleanupTempDirTracker(afterEach);
19-
const { createSessionStoreDir } = setupGatewaySessionsTestHarness();
19+
const { createSessionStoreDir } = setupGatewaySessionsHandlerTestHarness();
2020

2121
afterEach(() => {
2222
closeOpenClawStateDatabaseForTest();

‎src/gateway/server.sessions.delete-worktree-lifecycle.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import { testState, writeSessionStore } from "./test-helpers.js";
2020
import {
2121
directSessionReq,
2222
sessionStoreEntry,
23-
setupGatewaySessionsTestHarness,
23+
setupGatewaySessionsHandlerTestHarness,
2424
threadBindingMocks,
2525
} from "./test/server-sessions.test-helpers.js";
2626

27-
const { createSessionStoreDir } = setupGatewaySessionsTestHarness();
27+
const { createSessionStoreDir } = setupGatewaySessionsHandlerTestHarness();
2828
const execFileAsync = promisify(execFile);
2929

3030
async function initializeRemoteBackedGitWorkspace(root: string): Promise<string> {

‎src/gateway/server.sessions.recover.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import {
55
directSessionReq,
66
seedSessionTranscript,
77
sessionStoreEntry,
8-
setupGatewaySessionsTestHarness,
8+
setupGatewaySessionsHandlerTestHarness,
99
} from "./test/server-sessions.test-helpers.js";
1010

11-
const { createSessionStoreDir } = setupGatewaySessionsTestHarness();
11+
const { createSessionStoreDir } = setupGatewaySessionsHandlerTestHarness();
1212

1313
test("sessions.recover rolls over one tombstone and returns its continuation outcome", async () => {
1414
const { storePath } = await createSessionStoreDir();

0 commit comments

Comments
 (0)