Running ‘test-all.R’ [2s/4s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library('vcr')
  Loading required namespace: jsonlite
  > test_check("vcr")
  ── 1. Error: HttpInteraction (@test-HttpInteraction.R#9)  ──────────────────────
  Could not resolve host: eu.httpbin.org
  1: cli$post(body = body) at testthat/test-HttpInteraction.R:9
  2: private$make_request(rr)
  3: crul_fetch(opts)
  4: curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 2. Error: HTTPInteractionList (@test-HttpInteractionList.R#9)  ──────────────
  Could not resolve host: eu.httpbin.org
  1: cli$post(body = body) at testthat/test-HttpInteractionList.R:9
  2: private$make_request(rr)
  3: crul_fetch(opts)
  4: curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 3. Error: turned_off (@test-lightswitch.R#34)  ──────────────────────────────
  Could not resolve host: eu.httpbin.org
  1: suppressMessages(turned_off({
         beetle <- crul::HttpClient$new(url = "https://eu.httpbin.org/get")$get()
     })) at testthat/test-lightswitch.R:34
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: turned_off({
         beetle <- crul::HttpClient$new(url = "https://eu.httpbin.org/get")$get()
     })
  4: off_block(...)
  5: lazyeval::lazy_eval(tmp)
  6: lapply(x, lazy_eval, data = data)
  7: FUN(X[[i]], ...)
  8: eval(x$expr, x$env, emptyenv())
  9: eval(x$expr, x$env, emptyenv())
  10: crul::HttpClient$new(url = "https://eu.httpbin.org/get")$get() at testthat/test-lightswitch.R:35
  11: private$make_request(rr)
  12: crul_fetch(opts)
  13: curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 194 SKIPPED: 11 FAILED: 3
  1. Error: HttpInteraction (@test-HttpInteraction.R#9) 
  2. Error: HTTPInteractionList (@test-HttpInteractionList.R#9) 
  3. Error: turned_off (@test-lightswitch.R#34) 
  
  Error: testthat unit tests failed
  Execution halted