Skip to content

Commit f513c3f

Browse files
committed
test: dedupe qa manual lane mock reads
1 parent b21630d commit f513c3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎extensions/qa-lab/src/manual-lane.runtime.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe("runQaManualLane", () => {
9090
});
9191

9292
expect(startQaProviderServer).toHaveBeenCalledWith("mock-openai");
93-
const [gatewayOptions] = startQaGatewayChild.mock.calls.at(0) ?? [];
93+
const [gatewayOptions] = startQaGatewayChild.mock.calls[0] ?? [];
9494
expect(gatewayOptions?.repoRoot).toBe("/tmp/openclaw-repo");
9595
expect(gatewayOptions?.providerMode).toBe("mock-openai");
9696
expect(gatewayOptions?.providerBaseUrl).toBe("http://127.0.0.1:44080/v1");
@@ -120,7 +120,7 @@ describe("runQaManualLane", () => {
120120
repoRoot: "/tmp/openclaw-repo",
121121
embeddedGateway: "disabled",
122122
});
123-
const [gatewayOptions] = startQaGatewayChild.mock.calls.at(0) ?? [];
123+
const [gatewayOptions] = startQaGatewayChild.mock.calls[0] ?? [];
124124
expect(gatewayOptions?.providerMode).toBe("live-frontier");
125125
expect(gatewayOptions?.providerBaseUrl).toBeUndefined();
126126
expect(result.reply).toBe("Protocol note: mock reply.");

0 commit comments

Comments
 (0)