Skip to content

Commit 41658e5

Browse files
committed
test(node-host): await runtime shutdown owner
1 parent 1651408 commit 41658e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/node-host/runner.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ describe("runNodeHost", () => {
545545
await vi.waitFor(() => expect(mocks.capturedGatewayClients[0]?.stop).toHaveBeenCalledOnce());
546546

547547
expect(clearIntervalSpy).not.toHaveBeenCalled();
548+
await vi.waitFor(() => expect(mocks.closeMcpManager).toHaveBeenCalledOnce());
549+
expect(resolveCloseMcp).toBeTypeOf("function");
548550
resolveCloseMcp?.();
549551
await running;
550552

0 commit comments

Comments
 (0)