feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741)
This commit is contained in:
parent
343a564183
commit
80f1f1b5b8
103 changed files with 212 additions and 187 deletions
|
|
@ -954,7 +954,7 @@ it.live("pending permission rejects on instance dispose", () =>
|
|||
}).pipe(run, Effect.forkScoped)
|
||||
|
||||
expect(yield* waitForPending(1).pipe(run)).toHaveLength(1)
|
||||
yield* Effect.promise(() => Instance.provide({ directory: dir, fn: () => Instance.dispose() }))
|
||||
yield* Effect.promise(() => Instance.provide({ directory: dir, fn: () => void Instance.dispose() }))
|
||||
|
||||
const exit = yield* Fiber.await(fiber)
|
||||
expect(Exit.isFailure(exit)).toBe(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue