Running ‘testthat.R’ [68s/65s]
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")
  Starting 2 test processes
  Superclass process has cloneable=FALSE, but subclass r_session has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for r_session.
  Superclass process has cloneable=FALSE, but subclass r_session has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for r_session.
  [ FAIL 1 | WARN 1 | SKIP 111 | PASS 679 ]
  
  ══ Skipped tests (111) ═════════════════════════════════════════════════════════
  • Can't find envvar HTTR2_KEY (2): 'test-oauth-client.R:74:3',
    'test-oauth-flow-jwt.R:7:3'
  • On CRAN (108): 'test-multi-req.R:3:3', 'test-multi-req.R:89:3',
    'test-multi-req.R:135:3', 'test-multi-req.R:139:3',
    'test-req-perform.R:14:3', 'test-req-perform.R:25:3',
    'test-req-perform.R:189:3', 'test-req-perform.R:210:3',
    'test-req-perform.R:220:3', 'test-content-type.R:16:3',
    'test-content-type.R:24:3', 'test-content-type.R:55:3', 'test-curl.R:2:3',
    'test-curl.R:6:3', 'test-curl.R:80:3', 'test-curl.R:118:3',
    'test-curl.R:131:3', 'test-curl.R:139:3', 'test-curl.R:148:3',
    'test-curl.R:156:3', 'test-curl.R:165:3', 'test-curl.R:193:3',
    'test-curl.R:230:3', 'test-headers.R:11:3', 'test-headers.R:15:3',
    'test-headers.R:37:3', 'test-iterate-helpers.R:4:3',
    'test-iterate-helpers.R:63:3', 'test-iterate-helpers.R:85:3',
    'test-resp-stream.R:46:3', 'test-resp-stream.R:56:3',
    'test-resp-stream.R:303:3', 'test-resp-stream.R:320:3',
    'test-oauth-client.R:3:3', 'test-oauth-client.R:11:3',
    'test-oauth-client.R:20:3', 'test-oauth-flow-auth-code.R:6:3',
    'test-oauth-flow-auth-code.R:75:3', 'test-oauth-flow-auth-code.R:98:3',
    'test-oauth-flow-auth-code.R:127:3', 'test-oauth-flow-jwt.R:37:3',
    'test-oauth-flow-refresh.R:37:3', 'test-oauth-flow.R:9:3',
    'test-oauth-flow.R:18:3', 'test-oauth-flow.R:50:3', 'test-oauth-token.R:9:3',
    'test-oauth.R:109:3', 'test-req-auth-aws.R:50:3', 'test-iterate.R:40:3',
    'test-iterate.R:83:3', 'test-req-body.R:33:3', 'test-req-body.R:79:3',
    'test-req-body.R:165:3', 'test-req-cookies.R:13:3', 'test-req-error.R:21:3',
    'test-req-headers.R:35:3', 'test-req-cache.R:95:3', 'test-req-cache.R:218:3',
    'test-req-cache.R:232:3', 'test-req-cache.R:248:3', 'test-req-mock.R:19:3',
    'test-req-mock.R:38:3', 'test-req-options.R:39:3', 'test-req-options.R:54:3',
    'test-req-options.R:63:3', 'test-req-perform-stream.R:3:3',
    'test-req-perform-stream.R:100:3', 'test-req-perform-stream.R:109:3',
    'test-req-policy.R:2:3', 'test-req-promise.R:4:3', 'test-req-promise.R:31:3',
    'test-req-promise.R:122:5', 'test-req-perform-connection.R:2:3',
    'test-req-template.R:29:3', 'test-req-template.R:45:3',
    'test-req-retries.R:3:3', 'test-req-retries.R:73:3',
    'test-req-retries.R:79:3', 'test-req-throttle.R:2:3',
    'test-req-throttle.R:19:3', 'test-req.R:2:3', 'test-req.R:11:3',
    'test-req.R:15:3', 'test-req.R:30:3', 'test-req-url.R:60:3',
    'test-req-url.R:73:3', 'test-req-url.R:83:3', 'test-resp-status.R:3:3',
    'test-resp-body.R:15:3', 'test-resp-body.R:73:3', 'test-resp-body.R:80:3',
    'test-resp-stream-aws.R:55:3', 'test-resp.R:10:3', 'test-resp.R:26:3',
    'test-secret.R:40:3', 'test-secret.R:67:3', 'test-sequential.R:3:3',
    'test-utils-multi.R:45:3', 'test-utils.R:9:3', 'test-utils.R:33:3',
    'test-url.R:32:3', 'test-url.R:40:3', 'test-url.R:44:3', 'test-url.R:58:3',
    'test-url.R:106:3', 'test-url.R:179:3', 'test-url.R:205:3',
    'test-url.R:242:3'
  • has_paws_credentials() is not TRUE (1): 'test-req-auth-aws.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-multi-req.R:36:3'): can download files ─────────────────────────
  <httr2_failure/rlang_error/error/condition>
  Error in `req_perform_parallel(reqs, paths)`: Failed sending data to the peer [127.0.0.1]: Connection died, tried 5 times before giving up
  Backtrace:
       ▆
    1. ├─httr2::req_perform_parallel(reqs, paths) at test-multi-req.R:36:3
    2. │ └─httr2:::pool_run(pool, perfs, on_error = on_error)
    3. │   ├─rlang::try_fetch(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─curl::multi_run(0.1, pool = pool, poll = TRUE)
    6. ├─curl:::raise_libcurl_error(...)
    7. │ └─httr2 (local) error_cb(...)
    8. │   └─rlang::signal("", error = self$resp, class = "httr2_fail")
    9. │     └─rlang::cnd_signal(cnd)
   10. │       ├─base::withRestarts(rlang_muffle = function() NULL, signalCondition(cnd))
   11. │       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   12. │       │   └─base (local) doWithOneRestart(return(expr), restart)
   13. │       └─base::signalCondition(cnd)
   14. └─rlang (local) `<fn>`(`<httr2_fl>`)
   15.   └─handlers[[2L]](cnd)
   16.     └─rlang::cnd_signal(cnd$error)
  
  [ FAIL 1 | WARN 1 | SKIP 111 | PASS 679 ]
  Error: Test failures
  Execution halted