Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [9s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httptest")
  Loading required package: httptest
  Saving _problems/test-expect-header-18.R
  Saving _problems/test-expect-header-33.R
  [ FAIL 2 | WARN 0 | SKIP 12 | PASS 289 ]
  
  ══ Skipped tests (12) ══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-capture-requests.R:6:3', 'test-capture-requests.R:50:3',
    'test-capture-requests.R:95:3', 'test-expect-header.R:108:5',
    'test-mock-dir.R:22:5', 'test-offline.R:12:7', 'test-offline.R:19:9',
    'test-without-internet.R:3:5'
  • TODO: handle URL escaping (1): 'test-redact.R:243:5'
  • TODO: prettify when simplify=FALSE (1): 'test-capture-requests.R:175:5'
  • third_edition is TRUE (2): 'test-expect-header.R:61:7',
    'test-without-internet.R:73:7'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-expect-header.R:10:7'): expect_header with fake HTTP ─────────
  Expected exactly one failure and no successes.
  Actually succeeded 1 times
  Backtrace:
      ▆
   1. ├─httptest::expect_GET(...) at test-expect-header.R:10:7
   2. │ └─httptest:::expect_mock_request(object, "GET ", url, " ", ...)
   3. │   └─request_happened()(...)
   4. │     └─testthat:::expect_condition_matching_(...)
   5. │       └─testthat:::quasi_capture(...)
   6. │         ├─testthat (local) .capture(...)
   7. │         │ └─base::withCallingHandlers(...)
   8. │         └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   9. └─testthat::expect_failure(...)
  ── Failure ('test-expect-header.R:25:7'): expect_header with fake HTTP ─────────
  Expected exactly one failure and no successes.
  Actually succeeded 1 times
  Backtrace:
      ▆
   1. ├─httptest::expect_POST(...) at test-expect-header.R:25:7
   2. │ └─httptest:::expect_mock_request(object, "POST ", url, " ", ...)
   3. │   └─request_happened()(...)
   4. │     └─testthat:::expect_condition_matching_(...)
   5. │       └─testthat:::quasi_capture(...)
   6. │         ├─testthat (local) .capture(...)
   7. │         │ └─base::withCallingHandlers(...)
   8. │         └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   9. └─testthat::expect_failure(...)
  
  [ FAIL 2 | WARN 0 | SKIP 12 | PASS 289 ]
  Error:
  ! Test failures.
  Execution halted