Running ‘testthat.R’ [20s/135s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(VicmapR)
  
  Attaching package: 'VicmapR'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("VicmapR")
  
    |                                                        
    |                                                  |   0%
    |                                                        
    |=========================                         |  50%
    |                                                        
    |==================================================| 100%Reading layer `melbourne' from data source 
    `/home/ripley/R/Lib32/VicmapR/shapes/melbourne.geojson' using driver `GeoJSON'
  Simple feature collection with 1 feature and 8 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: 144.897 ymin: -37.85066 xmax: 144.9913 ymax: -37.77545
  CRS:           4326
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-build-query.R:27:3): print.vicmap_promise works ───────────────
  `print(vicmap_query("not a layer"))` threw an error with unexpected message.
  Expected match: "No data available to query. Check your layer and query parameters"
  Actual message: "Timeout was reached: [services.land.vic.gov.au] Connection timed out after 10000 milliseconds"
  Backtrace:
       █
    1. ├─testthat::expect_error(print(vicmap_query("not a layer")), regexp = "No data available to query. Check your layer and query parameters") test-build-query.R:27:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::print(vicmap_query("not a layer"))
    7. └─VicmapR:::print.vicmap_promise(vicmap_query("not a layer"))
    8.   └─VicmapR::feature_hits(x)
    9.     └─httr::GET(request)
   10.       └─httr:::request_perform(req, hu$handle$handle)
   11.         ├─httr:::request_fetch(req$output, req$url, handle)
   12.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 1 | WARN 13 | SKIP 0 | PASS 53 ]
  Error: Test failures
  Execution halted