Running ‘testthat.R’ [45s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  Saving _problems/test-resp-stream-36.R
  > test-req-perform-parallel.R: [working] (86 + 0) -> 9 -> 35 | ========>----------------------   27%
  > test-req-perform-parallel.R: [working] (53 + 0) -> 9 -> 68 | ================>--------------   52%
  > test-req-perform-iterative.R: \ iterating 31 done (15/s) | 2s
  > test-req-perform-parallel.R: [working] (0 + 0) -> 0 -> 130 | ==============================>  100%
  > test-req-perform-iterative.R: | iterating 64 done (15/s) | 4.3s
  > test-req-perform-iterative.R: / iterating 111 done (15/s) | 7.4s
  > test-req-perform-iterative.R: / iterating 120 done (15/s) | 8s
  > test-req-promise.R: Unhandled promise error: Failed to perform HTTP request.
  > test-req.R: <httr2_request>
  > test-req.R: GET https://example.com
  > test-req.R: Headers:
  > test-req.R: * Authorization: <REDACTED>
  > test-req.R: Body: empty
  [ FAIL 1 | WARN 0 | SKIP 144 | PASS 887 ]
  
  ══ Skipped tests (144) ═════════════════════════════════════════════════════════
  • Can't find envvar HTTR2_KEY (1): 'test-oauth-flow-jwt.R:7:3'
  • On CRAN (142): 'test-resp-stream.R:40:3', 'test-resp-stream.R:56:1',
    'test-resp-stream.R:68:3', 'test-resp-stream.R:92:3',
    'test-resp-stream.R:164:3', 'test-resp-stream.R:182:3',
    'test-resp-stream.R:204:3', 'test-resp-stream.R:218:3',
    'test-resp-stream.R:263:3', 'test-resp-stream.R:282:3',
    'test-resp-stream.R:304:3', 'test-resp-stream.R:326:3',
    'test-resp-stream.R:346:3', 'test-content-type.R:6:1',
    'test-content-type.R:22:1', 'test-content-type.R:56:1',
    'test-req-perform.R:31:1', 'test-req-perform.R:46:1',
    'test-req-perform.R:97:3', 'test-req-perform.R:214:1', 'test-headers.R:10:1',
    'test-headers.R:14:1', 'test-headers.R:21:1', 'test-headers.R:36:1',
    'test-last.R:28:3', 'test-last.R:39:1', 'test-last.R:50:1',
    'test-last.R:59:1', 'test-oauth-client.R:1:1', 'test-oauth-client.R:10:1',
    'test-oauth-client.R:19:1', 'test-curl.R:1:1', 'test-curl.R:5:1',
    'test-curl.R:79:1', 'test-curl.R:125:1', 'test-curl.R:138:1',
    'test-curl.R:146:1', 'test-curl.R:157:1', 'test-curl.R:165:1',
    'test-curl.R:178:1', 'test-curl.R:211:3', 'test-curl.R:234:1',
    'test-oauth-flow-auth-code.R:1:1', 'test-oauth-flow-auth-code.R:82:1',
    'test-oauth-flow-auth-code.R:116:3', 'test-oauth-flow-refresh.R:31:1',
    'test-oauth-flow-jwt.R:38:1', 'test-oauth-token.R:1:1',
    'test-oauth-token.R:11:1', 'test-oauth-flow.R:3:1', 'test-oauth-flow.R:14:1',
    'test-oauth-flow.R:42:1', 'test-oauth.R:101:1', 'test-req-body.R:1:1',
    'test-req-body.R:37:1', 'test-req-body.R:86:1', 'test-req-body.R:126:1',
    'test-req-body.R:151:1', 'test-req-cache.R:94:1', 'test-req-cache.R:216:1',
    'test-req-cache.R:231:1', 'test-req-cache.R:245:1',
    'test-req-auth-aws.R:19:1', 'test-req-auth-aws.R:51:1',
    'test-req-auth-aws.R:101:1', 'test-req-cookies.R:1:1',
    'test-req-dry-run.R:9:1', 'test-req-dry-run.R:26:1',
    'test-req-headers.R:20:1', 'test-req-headers.R:105:1',
    'test-req-headers.R:122:1', 'test-req-mock.R:25:1', 'test-req-error.R:11:1',
    'test-req-error.R:21:1', 'test-req-error.R:35:1', 'test-req-options.R:39:1',
    'test-req-options.R:46:1', 'test-req-perform-iterative-helpers.R:3:1',
    'test-req-perform-iterative-helpers.R:62:1',
    'test-req-perform-iterative-helpers.R:84:1',
    'test-req-perform-connection.R:1:1', 'test-req-perform-connection.R:24:3',
    'test-req-perform-connection.R:34:3', 'test-req-perform-connection.R:58:1',
    'test-req-perform-connection.R:73:1', 'test-req-perform-connection.R:107:1',
    'test-req-perform-connection.R:114:3', 'test-req-perform-parallel.R:1:1',
    'test-req-perform-parallel.R:27:3', 'test-req-perform-parallel.R:158:1',
    'test-req-perform-parallel.R:190:3', 'test-req-perform-parallel.R:215:3',
    'test-req-perform-parallel.R:229:3', 'test-req-perform-sequential.R:1:1',
    'test-req-perform-stream.R:1:1', 'test-req-perform-stream.R:107:1',
    'test-req-perform-stream.R:121:1', 'test-req-policy.R:1:1',
    'test-req-perform-iterative.R:35:1', 'test-req-perform-iterative.R:103:1',
    'test-req-promise.R:1:1', 'test-req-promise.R:29:1',
    'test-req-promise.R:113:1', 'test-req-retries.R:1:1',
    'test-req-retries.R:74:1', 'test-req-retries.R:85:1',
    'test-req-template.R:26:1', 'test-req-template.R:44:1',
    'test-req-throttle.R:2:3', 'test-req-verbose.R:3:3',
    'test-req-verbose.R:33:3', 'test-req-verbose.R:45:3',
    'test-req-verbose.R:57:3', 'test-req-verbose.R:76:3', 'test-req-url.R:105:1',
    'test-req-url.R:119:1', 'test-req-url.R:134:1', 'test-req.R:1:1',
    'test-req.R:10:1', 'test-req.R:14:1', 'test-req.R:29:1',
    'test-resp-status.R:1:1', 'test-resp-stream-aws.R:61:1',
    'test-resp-body.R:13:1', 'test-resp-body.R:73:1', 'test-resp-body.R:80:1',
    'test-resp.R:1:1', 'test-resp.R:24:1', 'test-resp.R:28:1',
    'test-secret.R:38:1', 'test-secret.R:69:1', 'test-utils-multi.R:63:1',
    'test-utils-redacted.R:1:1', 'test-utils.R:1:1', 'test-utils.R:19:1',
    'test-url.R:30:1', 'test-url.R:36:1', 'test-url.R:48:1', 'test-url.R:111:1',
    'test-url.R:208:1', 'test-url.R:236:1', 'test-url.R:273:1'
  • has_paws_credentials() is not TRUE (1): 'test-req-auth-aws.R:31:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-resp-stream.R:36:3'): can determine if a stream is complete (non-blocking) ──
  Expected `resp_stream_is_complete(resp)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 0 | SKIP 144 | PASS 887 ]
  Error:
  ! Test failures.
  Execution halted