Skip to content

Commit

Permalink
Compose functions via cats in GDAL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Jun 27, 2022
1 parent bc133d2 commit f3321b0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import geotrellis.spark.testkit._
import geotrellis.store.hadoop._
import cats.effect._
import cats.syntax.parallel._
import cats.syntax.functor._
import cats.instances.function._
import spire.syntax.cfor._
import org.apache.spark.rdd.RDD
import org.scalatest.Inspectors._
Expand All @@ -54,7 +56,7 @@ class GDALRasterSourceRDDSpec extends AnyFunSpec with TestEnvironment with Befor
scheduler.setRemoveOnCancelPolicy(true)
val (s, sh) = (unsafe.Scheduler.fromScheduledExecutor(scheduler), { () => scheduler.shutdown() })

unsafe.IORuntime(compute, blocking, s, () => { sh(); shutdown(); }, unsafe.IORuntimeConfig())
unsafe.IORuntime(compute, blocking, s, sh.as(shutdown()), unsafe.IORuntimeConfig())
}

implicit val runtime: unsafe.IORuntime = {
Expand Down

0 comments on commit f3321b0

Please sign in to comment.