From 4d3901adf13518814853f8eca60119e6d02085f1 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Tue, 14 Apr 2026 09:23:16 -0400 Subject: [PATCH] test(workspace): dispose instances after httpapi test Align the workspace HttpApi server test with the shared instance cleanup pattern used by the other experimental slices. --- packages/opencode/test/server/workspace-httpapi.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/opencode/test/server/workspace-httpapi.test.ts b/packages/opencode/test/server/workspace-httpapi.test.ts index 2e06de9626..e3f4c1c44a 100644 --- a/packages/opencode/test/server/workspace-httpapi.test.ts +++ b/packages/opencode/test/server/workspace-httpapi.test.ts @@ -1,10 +1,15 @@ -import { describe, expect, test } from "bun:test" +import { afterEach, describe, expect, test } from "bun:test" +import { Instance } from "../../src/project/instance" import { Server } from "../../src/server/server" import { Log } from "../../src/util/log" import { tmpdir } from "../fixture/fixture" Log.init({ print: false }) +afterEach(async () => { + await Instance.disposeAll() +}) + describe("experimental workspace httpapi", () => { test("lists adaptors, workspaces, status, and serves docs", async () => { await using tmp = await tmpdir({ git: true })