Running ‘testthat.R’ [0m/17m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rwars)
  > 
  > test_check("rwars")
  ── 1. Error: Classes can be retrieved (@test_all.R#6)  ─────────────────────────
  Service Unavailable (HTTP 503).
  1: expect_true({
         get_all_vehicles()
         TRUE
     }) at testthat/test_all.R:6
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_all_vehicles() at testthat/test_all.R:6
  5: query("/vehicles/", ...)
  6: stop_for_status(result)
  
  ── 2. Error: Entities can be retrieved (@test_entities.R#5)  ───────────────────
  Service Unavailable (HTTP 503).
  1: expect_true({
         get_film(1)
         TRUE
     }) at testthat/test_entities.R:5
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_film(1) at testthat/test_entities.R:5
  5: query(paste0("/films/", id), ...)
  6: stop_for_status(result)
  
  ── 3. Error: Entities can be retrieved and parsed (@test_entities.R#17)  ───────
  Service Unavailable (HTTP 503).
  1: expect_true({
         get_person(1, TRUE)
         TRUE
     }) at testthat/test_entities.R:17
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_person(1, TRUE) at testthat/test_entities.R:17
  5: query(paste0("/people/", id), ...)
  6: stop_for_status(result)
  
  ── 4. Error: Schemas can be retrieved (@test_schemas.R#4)  ─────────────────────
  Service Unavailable (HTTP 503).
  1: expect_true({
         get_species_schema()
         TRUE
     }) at testthat/test_schemas.R:4
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_species_schema() at testthat/test_schemas.R:4
  5: query("/species/schema", ...)
  6: stop_for_status(result)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 24 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: Classes can be retrieved (@test_all.R#6) 
  2. Error: Entities can be retrieved (@test_entities.R#5) 
  3. Error: Entities can be retrieved and parsed (@test_entities.R#17) 
  4. Error: Schemas can be retrieved (@test_schemas.R#4) 
  
  Error: testthat unit tests failed
  Execution halted