diff --git a/api/src/test/kotlin/APITest.kt b/api/src/test/kotlin/APITest.kt index b170d126c..fd839c066 100644 --- a/api/src/test/kotlin/APITest.kt +++ b/api/src/test/kotlin/APITest.kt @@ -166,7 +166,7 @@ class APITest : StringSpec() { private const val FOCUSER_NAME = "ZWO Focuser (1)" @JvmStatic private val EXPOSURE_TIME = Duration.ofSeconds(5) - @JvmStatic private val CAPTURES_PATH = Path.of("../data/captures").toRealPath() + @JvmStatic private val CAPTURES_PATH = Path.of(System.getProperty("user.home"), "/Git/nebulosa/data/captures") @JvmStatic private val STAR_DETECTION_OPTIONS = StarDetectionRequest(executablePath = Path.of("astap")) diff --git a/nebulosa-astrometrynet-jna/src/test/kotlin/LibAstrometryNetTest.kt b/nebulosa-astrometrynet-jna/src/test/kotlin/LibAstrometryNetTest.kt index d9466c71b..a9a94ef26 100644 --- a/nebulosa-astrometrynet-jna/src/test/kotlin/LibAstrometryNetTest.kt +++ b/nebulosa-astrometrynet-jna/src/test/kotlin/LibAstrometryNetTest.kt @@ -22,7 +22,7 @@ class LibAstrometryNetTest : StringSpec(), Solver.RecordMatchCallback { val lib = LibAstrometryNet.INSTANCE // http://data.astrometry.net/ - val indexDir = Path.of("~/Downloads/Index Files").toRealPath() + val indexDir = Path.of(System.getProperty("user.home"), "Downloads", "Index Files") "structure sizes" { val tan = Tan.ByValue() diff --git a/nebulosa-watney/src/test/kotlin/QuadDatabaseTest.kt b/nebulosa-watney/src/test/kotlin/QuadDatabaseTest.kt index b9762074f..849b774f1 100644 --- a/nebulosa-watney/src/test/kotlin/QuadDatabaseTest.kt +++ b/nebulosa-watney/src/test/kotlin/QuadDatabaseTest.kt @@ -18,7 +18,7 @@ import java.nio.file.Path class QuadDatabaseTest : StringSpec() { init { - val quadDir = Path.of("~/Downloads/watneyqdb").toRealPath() + val quadDir = Path.of(System.getProperty("user.home"), "Downloads", "watneyqdb") "cell index file" { val source = Path.of("$quadDir", "gaia2-00-07-20.qdbindex") diff --git a/nebulosa-watney/src/test/kotlin/WatnetPlateSolverTest.kt b/nebulosa-watney/src/test/kotlin/WatnetPlateSolverTest.kt index 7ea19313a..91f5e0b5f 100644 --- a/nebulosa-watney/src/test/kotlin/WatnetPlateSolverTest.kt +++ b/nebulosa-watney/src/test/kotlin/WatnetPlateSolverTest.kt @@ -17,7 +17,7 @@ import java.nio.file.Path class WatnetPlateSolverTest : AbstractFitsAndXisfTest() { init { - val quadDir = Path.of("~/Downloads/watneyqdb").toRealPath() + val quadDir = Path.of(System.getProperty("user.home"), "Downloads", "watneyqdb") val quadDatabase = CompactQuadDatabase(quadDir) val solver = WatneyPlateSolver(quadDatabase)