Skip to content

Commit

Permalink
[api]: Fix test initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Jul 14, 2024
1 parent a831d43 commit dbff300
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/src/test/kotlin/APITest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion nebulosa-watney/src/test/kotlin/QuadDatabaseTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion nebulosa-watney/src/test/kotlin/WatnetPlateSolverTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dbff300

Please sign in to comment.