Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mem48 committed May 5, 2024
1 parent ff13b92 commit 8472647
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test_02_without_OTP.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ test_that("otp_isochrone input validation", {
)
skip_on_cran()
expect_error(otp_isochrone(otpcon, fromPlace = c(1, 1)),
regexp = "No results returned, check your connection"
regexp = "No results returned, check your connection|Failed to connect to localhost"
)
})

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_03_with_OTP.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ test_that("transit routing", {
route <- otp_plan(otpcon,
fromPlace = c(-1.16489, 50.64990),
toPlace = c(-1.15803, 50.72515),
date_time = as.POSIXct(strptime("2022-06-03 13:30", "%Y-%m-%d %H:%M")),
date_time = as.POSIXct(strptime("2024-06-03 13:30", "%Y-%m-%d %H:%M")),
mode = c("WALK", "TRANSIT"),
numItineraries = 3
)
Expand Down

0 comments on commit 8472647

Please sign in to comment.