Running ‘testthat.R’ [11s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(opentripplanner)
  > 
  > test_check("opentripplanner")
  trying URL 'https://github.com/ropensci/opentripplanner/releases/download/0.1/isle-of-wight-demo.zip'
  Content type 'application/octet-stream' length 8309996 bytes (7.9 MB)
  ==================================================
  downloaded 7.9 MB
  
  trying URL 'https://repo1.maven.org/maven2/org/opentripplanner/otp/1.4.0/otp-1.4.0-shaded.jar'
  Content type 'application/java-archive' length 61838786 bytes (59.0 MB)
  ==================================================
  downloaded 59.0 MB
  
  ── 1. Failure: otp_plan input validation (@test_02_without_OTP.R#83)  ──────────
  `otp_plan(...)` threw an error with unexpected message.
  Expected match: "Failed to connect to localhost port 8080"
  Actual message: "Couldn't connect to server"
  Backtrace:
    1. testthat::expect_error(...)
    6. opentripplanner::otp_plan(...)
    7. pbapply::pblapply(...)
    8. base::lapply(X, FUN, ...)
    9. opentripplanner:::FUN(X[[i]], ...)
   10. opentripplanner:::otp_plan_internal(...)
   11. httr::GET(...)
   12. httr:::request_perform(req, hu$handle$handle)
   14. httr:::request_fetch.write_memory(req$output, req$url, handle)
   15. curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Failure: otp_plan input validation (@test_02_without_OTP.R#95)  ──────────
  `otp_plan(...)` threw an error with unexpected message.
  Expected match: "Failed to connect to localhost port 8080"
  Actual message: "Couldn't connect to server"
  Backtrace:
    1. testthat::expect_error(...)
    6. opentripplanner::otp_plan(...)
    7. pbapply::pblapply(...)
    8. base::lapply(X, FUN, ...)
    9. opentripplanner:::FUN(X[[i]], ...)
   10. opentripplanner:::otp_plan_internal(...)
   11. httr::GET(...)
   12. httr:::request_perform(req, hu$handle$handle)
   14. httr:::request_fetch.write_memory(req$output, req$url, handle)
   15. curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Failure: otp_plan input validation (@test_02_without_OTP.R#115)  ─────────
  `otp_plan(...)` threw an error with unexpected message.
  Expected match: "Failed to connect to localhost port 8080"
  Actual message: "Couldn't connect to server"
  Backtrace:
    1. testthat::expect_error(...)
    6. opentripplanner::otp_plan(...)
    7. pbapply::pblapply(...)
    8. base::lapply(X, FUN, ...)
    9. opentripplanner:::FUN(X[[i]], ...)
   10. opentripplanner:::otp_plan_internal(...)
   11. httr::GET(...)
   12. httr:::request_perform(req, hu$handle$handle)
   14. httr:::request_fetch.write_memory(req$output, req$url, handle)
   15. curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Failure: otp_plan input validation (@test_02_without_OTP.R#122)  ─────────
  `otp_plan(...)` threw an error with unexpected message.
  Expected match: "Failed to connect to localhost port 8080"
  Actual message: "2 nodes produced errors; first error: Couldn't connect to server"
  Backtrace:
    1. testthat::expect_error(...)
    6. opentripplanner::otp_plan(...)
    7. pbapply::pblapply(...)
    8. parallel:::PAR_FUN(cl, X, FUN, ...)
   10. parallel::clusterApplyLB(...)
   11. parallel:::dynamicClusterApply(cl, fun, length(x), argfun)
   12. parallel:::checkForRemoteErrors(val)
  
  ── 5. Failure: otp_geocode input validation (@test_02_without_OTP.R#146)  ──────
  `otp_geocode(otpcon, query = "test")` threw an error with unexpected message.
  Expected match: "Failed to connect to localhost port 8080"
  Actual message: "Couldn't connect to server"
  Backtrace:
    1. testthat::expect_error(otp_geocode(otpcon, query = "test"), regexp = "Failed to connect to localhost port 8080")
    6. opentripplanner::otp_geocode(otpcon, query = "test")
    7. httr::GET(routerUrl, query = querylist)
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  ── 6. Failure: otp_isochrone input validation (@test_02_without_OTP.R#155)  ────
  `otp_isochrone(otpcon, fromPlace = c(1, 1))` threw an error with unexpected message.
  Expected match: "Failed to connect to localhost port 8080"
  Actual message: "Couldn't connect to server"
  Backtrace:
    1. testthat::expect_error(...)
    6. opentripplanner::otp_isochrone(otpcon, fromPlace = c(1, 1))
    7. httr::GET(routerUrl, query = query)
    8. httr:::request_perform(req, hu$handle$handle)
   10. httr:::request_fetch.write_memory(req$output, req$url, handle)
   11. curl::curl_fetch_memory(url, handle = handle)
  
  trying URL 'https://github.com/ropensci/opentripplanner/releases/download/0.1/centroids.gpkg'
  Content type 'application/octet-stream' length 126976 bytes (124 KB)
  ==================================================
  downloaded 124 KB
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 60 | SKIPPED: 19 | WARNINGS: 4 | FAILED: 6 ]
  1. Failure: otp_plan input validation (@test_02_without_OTP.R#83) 
  2. Failure: otp_plan input validation (@test_02_without_OTP.R#95) 
  3. Failure: otp_plan input validation (@test_02_without_OTP.R#115) 
  4. Failure: otp_plan input validation (@test_02_without_OTP.R#122) 
  5. Failure: otp_geocode input validation (@test_02_without_OTP.R#146) 
  6. Failure: otp_isochrone input validation (@test_02_without_OTP.R#155) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In for (i in seq_len(n)) { :
    closing unused connection 5 (<-localhost:11094)
  2: In for (i in seq_len(n)) { :
    closing unused connection 4 (<-localhost:11094)
  Execution halted