mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-30 03:54:59 +00:00
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.
This commit is contained in:
parent
ce035ec4d3
commit
4d3901adf1
1 changed files with 6 additions and 1 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue