Skip to content

Commit 1b4afbf

Browse files
committed
test(server): type wait expectations independently of tool output
1 parent 73fbc7f commit 1b4afbf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/server/src/mcp/OrchestratorMcpToolkit.integration.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,13 @@ describe("orchestrator MCP toolkit", () => {
627627
{ ...invocation, thread: undefined },
628628
).pipe(Effect.withTracer(tracer));
629629
expect(wait.isError).not.toBe(true);
630-
expect(wait.structuredContent).toMatchObject({
630+
const expectedWait = {
631631
threadId: delegated.childThreadId,
632632
runId: queuedFollowup.runId,
633633
status: "completed",
634634
timedOut: false,
635-
});
635+
};
636+
expect(wait.structuredContent).toEqual(expectedWait);
636637
expect(messageReads).toEqual([]);
637638
expect(transferReads).toHaveLength(0);
638639
const settledWait = yield* invoke(
@@ -646,7 +647,7 @@ describe("orchestrator MCP toolkit", () => {
646647
).pipe(Effect.withTracer(tracer));
647648
expect(settledWait.isError).not.toBe(true);
648649
expect(settledWait.structuredContent).toMatchObject({
649-
...wait.structuredContent,
650+
...expectedWait,
650651
resultRun: { runId: queuedFollowup.runId, status: "completed" },
651652
});
652653
expect(messageReads.length).toBeGreaterThan(0);

0 commit comments

Comments
 (0)