test(opencode): remove disposal event wait race (#30971)
This commit is contained in:
parent
e9aa33d4bd
commit
5d7157fe51
3 changed files with 3 additions and 3 deletions
|
|
@ -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"))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue