Running ‘testthat.R’ [21s/106s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(httr2)
  
  Attaching package: 'httr2'
  
  The following objects are masked from 'package:testthat':
  
      local_mock, with_mock
  
  > 
  > test_check("httr2")
  stdout:]
    
  stderr:]
    
  stdout:]
    
  stderr:]
    
  stdout:]
    
  stderr:]
    
  stdout:]
    
  stderr:]
    
  stdout:]
    
  stderr:]
    
  stdout:]
    
  stderr:]
    
  [ FAIL 6 | WARN 0 | SKIP 37 | PASS 283 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Can't find envvar HTTR2_KEY (2)
  • On CRAN (35)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-curl.R:107:3'): can evaluate simple calls ──────────────────────
  <rlib_error_3_0/rlib_error/error/condition>
  Error in `"rs_init(self, private, super, options, wait, wait_timeout)"`: ! Could not start R session, timed out
  Backtrace:
       ▆
    1. └─httr2:::request_test() at test-curl.R:107:2
    2.   ├─httr2::request(the$test_app$url())
    3.   │ └─httr2:::new_request(base_url)
    4.   │   └─rlang::is_string(url)
    5.   └─the$test_app$url()
    6.     └─self$start()
    7.       └─callr::r_session$new(callr_opts, wait = TRUE)
    8.         └─callr (local) initialize(...)
    9.           └─callr:::rs_init(self, private, super, options, wait, wait_timeout)
   10.             └─throw(new_error("Could not start R session, timed out"))
  ── Error ('test-multi-req.R:2:3'): requests happen in parallel ─────────────────
  <rlib_error_3_0/rlib_error/error/condition>
  Error in `"rs_init(self, private, super, options, wait, wait_timeout)"`: ! Could not start R session, timed out
  Backtrace:
       ▆
    1. ├─rlang::list2(...) at test-multi-req.R:2:2
    2. └─httr2:::request_test("/delay/:secs", secs = 0.5)
    3.   ├─httr2::request(the$test_app$url())
    4.   │ └─httr2:::new_request(base_url)
    5.   │   └─rlang::is_string(url)
    6.   └─the$test_app$url()
    7.     └─self$start()
    8.       └─callr::r_session$new(callr_opts, wait = TRUE)
    9.         └─callr (local) initialize(...)
   10.           └─callr:::rs_init(self, private, super, options, wait, wait_timeout)
   11.             └─throw(new_error("Could not start R session, timed out"))
  ── Error ('test-multi-req.R:15:3'): can download files ─────────────────────────
  <rlib_error_3_0/rlib_error/error/condition>
  Error in `"rs_init(self, private, super, options, wait, wait_timeout)"`: ! Could not start R session, timed out
  Backtrace:
       ▆
    1. └─httr2:::request_test("/json") at test-multi-req.R:15:2
    2.   ├─httr2::request(the$test_app$url())
    3.   │ └─httr2:::new_request(base_url)
    4.   │   └─rlang::is_string(url)
    5.   └─the$test_app$url()
    6.     └─self$start()
    7.       └─callr::r_session$new(callr_opts, wait = TRUE)
    8.         └─callr (local) initialize(...)
    9.           └─callr:::rs_init(self, private, super, options, wait, wait_timeout)
   10.             └─throw(new_error("Could not start R session, timed out"))
  ── Error ('test-multi-req.R:43:3'): both curl and HTTP errors become errors ────
  <rlib_error_3_0/rlib_error/error/condition>
  Error in `"rs_init(self, private, super, options, wait, wait_timeout)"`: ! Could not start R session, timed out
  Backtrace:
       ▆
    1. ├─rlang::list2(...) at test-multi-req.R:43:2
    2. └─httr2:::request_test("/status/:status", status = 404)
    3.   ├─httr2::request(the$test_app$url())
    4.   │ └─httr2:::new_request(base_url)
    5.   │   └─rlang::is_string(url)
    6.   └─the$test_app$url()
    7.     └─self$start()
    8.       └─callr::r_session$new(callr_opts, wait = TRUE)
    9.         └─callr (local) initialize(...)
   10.           └─callr:::rs_init(self, private, super, options, wait, wait_timeout)
   11.             └─throw(new_error("Could not start R session, timed out"))
  ── Error ('test-multi-req.R:53:3'): errors can cancel outstanding requests ─────
  <rlib_error_3_0/rlib_error/error/condition>
  Error in `"rs_init(self, private, super, options, wait, wait_timeout)"`: ! Could not start R session, timed out
  Backtrace:
       ▆
    1. ├─rlang::list2(...) at test-multi-req.R:53:2
    2. └─httr2:::request_test("/status/:status", status = 404)
    3.   ├─httr2::request(the$test_app$url())
    4.   │ └─httr2:::new_request(base_url)
    5.   │   └─rlang::is_string(url)
    6.   └─the$test_app$url()
    7.     └─self$start()
    8.       └─callr::r_session$new(callr_opts, wait = TRUE)
    9.         └─callr (local) initialize(...)
   10.           └─callr:::rs_init(self, private, super, options, wait, wait_timeout)
   11.             └─throw(new_error("Could not start R session, timed out"))
  ── Error ('test-req-auth.R:4:3'): can send username/password ───────────────────
  <rlib_error_3_0/rlib_error/error/condition>
  Error in `"rs_init(self, private, super, options, wait, wait_timeout)"`: ! Could not start R session, timed out
  Backtrace:
       ▆
    1. └─httr2:::request_test("/basic-auth/:user/:password") at test-req-auth.R:4:2
    2.   ├─httr2::request(the$test_app$url())
    3.   │ └─httr2:::new_request(base_url)
    4.   │   └─rlang::is_string(url)
    5.   └─the$test_app$url()
    6.     └─self$start()
    7.       └─callr::r_session$new(callr_opts, wait = TRUE)
    8.         └─callr (local) initialize(...)
    9.           └─callr:::rs_init(self, private, super, options, wait, wait_timeout)
   10.             └─throw(new_error("Could not start R session, timed out"))
  
  [ FAIL 6 | WARN 0 | SKIP 37 | PASS 283 ]
  Error: Test failures
  Execution halted