test(opencode): remove disposal event wait race (#30971)

This commit is contained in:
Aiden Cline 2026-06-05 09:58:40 -05:00 committed by GitHub
commit 5d7157fe51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ it.live("CLI bootstrap runs InstanceBootstrap before callback", () =>
it.live("CLI bootstrap disposes the instance when the callback rejects", () =>
Effect.gen(function* () {
const tmp = yield* bootstrapFixture
const disposed = yield* waitDisposed(tmp.directory).pipe(Effect.forkScoped)
const disposed = yield* waitDisposed(tmp.directory).pipe(Effect.forkScoped({ startImmediately: true }))
const exit = yield* Effect.promise(() =>
cliBootstrap(tmp.directory, async () => Promise.reject(new Error("boom"))),