Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsconnect)
  > 
  > test_check("rsconnect")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (25)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-http.R:90:5): simple http GET works ─────────────────────────────
  Error: Failed to connect to localhost port 4072: Connection refused
  Backtrace:
      █
   1. └─rsconnect:::GET(...) test-http.R:90:4
   2.   └─rsconnect:::httpRequest(...)
   3.     └─rsconnect:::httpInvokeRequest(..., http = httpFunction())
   4.       └─rsconnect:::http(...)
   5.         ├─base::system.time(...)
   6.         └─base::tryCatch(...)
   7.           └─base:::tryCatchList(expr, classes, parentenv, handlers)
   8.             └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.               └─value[[3L]](cond)
  ── Error (test-http.R:118:5): posting JSON works ───────────────────────────────
  Error: Failed to connect to localhost port 4072: Connection refused
  Backtrace:
      █
   1. └─rsconnect:::POST_JSON(...) test-http.R:118:4
   2.   └─rsconnect:::POST(...)
   3.     └─rsconnect:::httpRequestWithBody(...)
   4.       └─rsconnect:::http(...)
   5.         ├─base::system.time(...)
   6.         └─base::tryCatch(...)
   7.           └─base:::tryCatchList(expr, classes, parentenv, handlers)
   8.             └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.               └─value[[3L]](cond)
  ── Error (test-http.R:152:5): posting with no data works ───────────────────────
  Error: Failed to connect to localhost port 4072: Connection refused
  Backtrace:
      █
   1. └─rsconnect:::POST(...) test-http.R:152:4
   2.   └─rsconnect:::httpRequest(...)
   3.     └─rsconnect:::httpInvokeRequest(..., http = httpFunction())
   4.       └─rsconnect:::http(...)
   5.         ├─base::system.time(...)
   6.         └─base::tryCatch(...)
   7.           └─base:::tryCatchList(expr, classes, parentenv, handlers)
   8.             └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.               └─value[[3L]](cond)
  ── Error (test-http.R:187:5): posting file works ───────────────────────────────
  Error: Failed to connect to localhost port 4072: Connection refused
  Backtrace:
      █
   1. └─rsconnect:::POST(...) test-http.R:187:4
   2.   └─rsconnect:::httpRequestWithBody(...)
   3.     └─rsconnect:::http(...)
   4.       ├─base::system.time(...)
   5.       └─base::tryCatch(...)
   6.         └─base:::tryCatchList(expr, classes, parentenv, handlers)
   7.           └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.             └─value[[3L]](cond)
  ── Error (test-http.R:220:5): api key authinfo sets headers ────────────────────
  Error: Failed to connect to localhost port 4072: Connection refused
  Backtrace:
      █
   1. └─rsconnect:::GET(...) test-http.R:220:4
   2.   └─rsconnect:::httpRequest(...)
   3.     └─rsconnect:::httpInvokeRequest(..., http = httpFunction())
   4.       └─rsconnect:::http(...)
   5.         ├─base::system.time(...)
   6.         └─base::tryCatch(...)
   7.           └─base:::tryCatchList(expr, classes, parentenv, handlers)
   8.             └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.               └─value[[3L]](cond)
  
  [ FAIL 5 | WARN 0 | SKIP 25 | PASS 222 ]
  Error: Test failures
  Execution halted