Skip to content

Commit

Permalink
Fix Raster tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Apr 8, 2021
1 parent b36631e commit 0513c20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sbt.Keys._

ThisBuild / scalaVersion := "2.12.13"
ThisBuild / scalaVersion := "2.13.5"
ThisBuild / organization := "org.locationtech.geotrellis"
ThisBuild / crossScalaVersions := List("2.12.13", "2.13.5")

Expand Down
7 changes: 3 additions & 4 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ object Settings {
case x => sys.error(s"Encountered unsupported Scala version ${x.getOrElse("undefined")}")
}),

libraryDependencies += scalaReflect(scalaVersion.value),

pomExtra := (
<developers>
<developer>
Expand Down Expand Up @@ -418,10 +420,7 @@ object Settings {
lazy val macros = Seq(
name := "geotrellis-macros",
Compile / sourceGenerators += (Compile / sourceManaged).map(Boilerplate.genMacro).taskValue,
libraryDependencies ++= Seq(
spireMacro,
scalaReflect(scalaVersion.value)
)
libraryDependencies += spireMacro
) ++ commonSettings

lazy val mdoc = Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ class GeoTiffReprojectRasterSourceSpec extends AnyFunSpec with RasterMatchers wi

warpRasterSource.resolutions.size shouldBe rasterSource.resolutions.size

val testBounds = GridBounds(0, 0, expectedRasterExtent.cols, expectedRasterExtent.rows).toGridType[Long].split(64, 64).toSeq
val testBounds =
GridBounds(0, 0, expectedRasterExtent.cols, expectedRasterExtent.rows)
.toGridType[Long]
.split(64, 64)
.take(5) // speedup tests
.toList

for (bound <- testBounds) yield {
withClue(s"Read window ${bound}: ") {
Expand Down

0 comments on commit 0513c20

Please sign in to comment.