Running ‘testthat.R’ [14s/15s]
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")
  [ FAIL 1 | WARN 1 | SKIP 38 | PASS 310 ]
  
  ══ Skipped tests (38) ══════════════════════════════════════════════════════════
  • Can't find envvar HTTR2_KEY (2): 'test-oauth-client.R:64:3',
    'test-oauth-flow-jwt.R:7:3'
  • On CRAN (36): 'test-curl.R:2:3', 'test-curl.R:89:3', 'test-curl.R:100:3',
    'test-headers.R:11:3', 'test-headers.R:15:3', 'test-headers.R:36:3',
    'test-oauth-client.R:3:3', 'test-oauth-client.R:10:3',
    'test-oauth-token.R:9:3', 'test-req-body.R:75:3', 'test-req-cache.R:78:3',
    'test-req-error.R:21:3', 'test-req-options.R:41:3',
    'test-req-options.R:50:3', 'test-req-perform.R:11:3',
    'test-req-perform.R:76:3', 'test-req-perform.R:92:3',
    'test-req-perform.R:102:3', 'test-req-template.R:29:3',
    'test-req-template.R:45:3', 'test-req-throttle.R:2:3',
    'test-req-throttle.R:11:3', 'test-req-url.R:75:3', 'test-req.R:2:3',
    'test-req.R:11:3', 'test-req.R:25:3', 'test-resp-body.R:11:3',
    'test-resp-body.R:29:3', 'test-resp-status.R:3:3', 'test-resp.R:2:3',
    'test-resp.R:16:3', 'test-secret.R:26:3', 'test-secret.R:53:3',
    'test-url.R:34:3', 'test-utils.R:9:3', 'test-utils.R:20:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-oauth.R:46:3'): can store on disk ──────────────────────────────
  Error in `memDecompress(x_cmp, "bzip2")`: internal error -2 in memDecompress(type = "bzip2")
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(cache$get(), 1) at test-oauth.R:46:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cache$get()
   5.   └─httr2::secret_read_rds(path, obfuscate_key())
   6.     └─httr2:::secret_unserialize(x, key)
   7.       └─base::memDecompress(x_cmp, "bzip2")
  
  [ FAIL 1 | WARN 1 | SKIP 38 | PASS 310 ]
  Error: Test failures
  Execution halted