Skip to content

Commit f789081

Browse files
committed
test(gateway): abort accepted agent run in e2e
1 parent 388dc56 commit f789081

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/gateway/gateway.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@ describe("gateway e2e", () => {
238238

239239
expect(payload?.status).toBe("accepted");
240240
expect(typeof payload?.runId).toBe("string");
241+
242+
const abortPayload = await client.request(
243+
"sessions.abort",
244+
{ runId: payload.runId },
245+
{ timeoutMs: 5_000 },
246+
);
247+
expect(["aborted", "no-active-run"]).toContain(abortPayload?.status);
241248
} finally {
242249
await disconnectGatewayClient(client);
243250
await server.close({ reason: "mock openai test complete" });

0 commit comments

Comments
 (0)