Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-thomson239 committed Sep 6, 2023
1 parent f186f20 commit 71721f2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/shared/src/test/scala/cats/effect/IOSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,15 @@ class IOSpec extends BaseSpec with Discipline with IOPlatformSpecification {
"immediately surface fatal errors" in ticked { implicit ticker =>
import scala.util.control.NonFatal
val io = IO.raiseError[Unit](new VirtualMachineError {}).voidError

val fatalThrown = try {
unsafeRun[Unit](io)
false
} catch {
case t if NonFatal(t) => false
case _: Throwable => true
}

val fatalThrown =
try {
unsafeRun[Unit](io)
false
} catch {
case t if NonFatal(t) => false
case _: Throwable => true
}
IO(fatalThrown) must completeAs(true)
}
}
Expand Down

0 comments on commit 71721f2

Please sign in to comment.