Replace Instance.disposeAll/load with fixture helper (#25418)

This commit is contained in:
Kit Langton 2026-05-02 10:56:15 -04:00 committed by GitHub
commit 4c4860fb24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 139 additions and 130 deletions

View file

@ -5,7 +5,7 @@ import { Server } from "../../src/server/server"
import { EventPaths } from "../../src/server/routes/instance/httpapi/event"
import * as Log from "@opencode-ai/core/util/log"
import { resetDatabase } from "../fixture/db"
import { tmpdir } from "../fixture/fixture"
import { disposeAllInstances, tmpdir } from "../fixture/fixture"
void Log.init({ print: false })
@ -29,7 +29,7 @@ async function readFirstChunk(response: Response) {
afterEach(async () => {
Flag.OPENCODE_EXPERIMENTAL_HTTPAPI = original
await Instance.disposeAll()
await disposeAllInstances()
await resetDatabase()
})