Running ‘testthat.R’ [0m/145m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsconnect)
  > 
  > test_check("rsconnect")
  ── 1. Error: simple http GET works (@test-http.R#87)  ──────────────────────────
  Empty reply from server
  1: GET(service = service, authInfo = NULL, query = NULL, path = "test") at testthat/test-http.R:87
  2: httpRequest(service, authInfo, "GET", path, query, headers, timeout)
  3: httpInvokeRequest(..., http = httpFunction())
  4: http(service$protocol, service$host, service$port, method, url, headers, timeout = timeout, 
         certificate = certificate)
  5: system.time(gcFirst = FALSE, tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     }))
  6: tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     })
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 2. Error: posting JSON works (@test-http.R#112)  ────────────────────────────
  Couldn't connect to server
  1: POST_JSON(service = service, authInfo = NULL, json = body, query = NULL, path = "test") at testthat/test-http.R:112
  2: POST(service, authInfo, path, query, "application/json", content = toJSON(json, pretty = TRUE, 
         digits = 30), headers = headers)
  3: httpRequestWithBody(service, authInfo, "POST", path, query, contentType, file, content, 
         headers)
  4: http(service$protocol, service$host, service$port, method, url, headers, contentType, 
         file, certificate = certificate)
  5: system.time(gcFirst = FALSE, tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     }))
  6: tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     })
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 3. Error: posting with no data works (@test-http.R#143)  ────────────────────
  Couldn't connect to server
  1: POST(service = service, authInfo = NULL, path = "test", file = NULL, content = NULL) at testthat/test-http.R:143
  2: httpRequest(service, authInfo, "POST", path, query, headers)
  3: httpInvokeRequest(..., http = httpFunction())
  4: http(service$protocol, service$host, service$port, method, url, headers, timeout = timeout, 
         certificate = certificate)
  5: system.time(gcFirst = FALSE, tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     }))
  6: tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     })
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 4. Error: posting file works (@test-http.R#175)  ────────────────────────────
  Couldn't connect to server
  1: POST(service = service, authInfo = NULL, path = "test", contentType = "text/plain", 
         file = datafile, content = NULL) at testthat/test-http.R:175
  2: httpRequestWithBody(service, authInfo, "POST", path, query, contentType, file, content, 
         headers)
  3: http(service$protocol, service$host, service$port, method, url, headers, contentType, 
         file, certificate = certificate)
  4: system.time(gcFirst = FALSE, tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     }))
  5: tryCatch({
         response <- curl::curl_fetch_memory(url, handle = handle)
     }, error = function(e, ...) {
         if (identical(e$message, "Callback aborted") || identical(e$message, "transfer closed with outstanding read data remaining")) 
             return(NULL)
         else stop(e)
     })
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 182 | SKIPPED: 19 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: simple http GET works (@test-http.R#87) 
  2. Error: posting JSON works (@test-http.R#112) 
  3. Error: posting with no data works (@test-http.R#143) 
  4. Error: posting file works (@test-http.R#175) 
  
  Error: testthat unit tests failed
  Execution halted