Skip to content

Commit f590a70

Browse files
committed
try to avoid gdal crash at end of integrationtests
1 parent 8ce879c commit f590a70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

geotrellis-integrationtests/src/test/scala/org/openeo/geotrellis/integrationtests/CollectionTests.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.openeo.geotrellis.integrationtests
22

3+
import com.azavea.gdal.GDALWarp
34
import com.fasterxml.jackson.databind.{JsonNode, ObjectMapper}
45
import geotrellis.layer.SpaceTimeKey
56
import geotrellis.proj4.{CRS, LatLng}
@@ -59,6 +60,7 @@ object CollectionTests {
5960

6061
@AfterAll
6162
def tearDownSpark_AfterAll(): Unit = {
63+
GDALWarp.init(0)
6264
gotAfterAll = true
6365
maybeStopSpark()
6466
}

0 commit comments

Comments
 (0)