diff --git a/tests/testthat/test_02_without_OTP.R b/tests/testthat/test_02_without_OTP.R index 30cf1e6..636dfbf 100644 --- a/tests/testthat/test_02_without_OTP.R +++ b/tests/testthat/test_02_without_OTP.R @@ -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" ) }) diff --git a/tests/testthat/test_03_with_OTP.R b/tests/testthat/test_03_with_OTP.R index b751506..a941241 100644 --- a/tests/testthat/test_03_with_OTP.R +++ b/tests/testthat/test_03_with_OTP.R @@ -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 )