Running ‘testthat.R’ [14s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(curl)
  > 
  > test_check("curl")
  This is libcurl version 7.47.1 with NSS/3.27 
  Failed to download server list:HTTP response code said error
  Using test server: https://httpbin.org 
  1. Failure: Invalid domain raises an error (@test-certificates.R#6) ------------
  error$message does not match "certificate".
  Actual value: "SSL connect error"
  
  
  2. Error: Invalid domain raises an error (@test-certificates.R#7) --------------
  SSL connect error
  1: expect_is(curl_fetch_memory(fake_url, handle = new_handle(ssl_verifyhost = FALSE))$status, 
         "integer") at testthat/test-certificates.R:7
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: curl_fetch_memory(fake_url, handle = new_handle(ssl_verifyhost = FALSE))
  
  3. Failure: Add some cookies (@test-cookies.R#16) ------------------------------
  cookies$name not equal to c("foo", "bar").
  2/2 mismatches
  x[1]: "bar"
  y[1]: "foo"
  
  x[2]: "foo"
  y[2]: "bar"
  
  
  4. Failure: Add some cookies (@test-cookies.R#17) ------------------------------
  cookies$value not equal to c("123", "ftw").
  2/2 mismatches
  x[1]: "ftw"
  y[1]: "123"
  
  x[2]: "123"
  y[2]: "ftw"
  
  
  5. Failure: Post text data (@test-post.R#21) -----------------------------------
  rawToChar(req$content) not equal to paste0(txt, "\n", collapse = "").
  1/1 mismatches
  x[1]: "{\n  \"args\": {}, \n  \"data\": \"moo=moomooo\", \n  \"files\": {}, \n  
  x[1]: \"form\": {}, \n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Accept-
  x[1]: Encoding\": \"gzip, deflate\", \n    \"Cache-Control\": \"no-cache\", \n  
  x[1]:   \"Connect-Time\": \"0\", \n    \"Connection\": \"close\", \n    \"Conten
  x[1]: t-Length\": \"11\", \n    \"Content-Type\": \"text/moo\", \n    \"Host\...
  y[1]: "{\n  \"args\": {}, \n  \"data\": \"moo=moomooo\", \n  \"files\": {}, \n  
  y[1]: \"form\": {}, \n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Accept-
  y[1]: Encoding\": \"gzip, deflate\", \n    \"Cache-Control\": \"no-cache\", \n  
  y[1]:   \"Connect-Time\": \"0\", \n    \"Connection\": \"close\", \n    \"Conten
  y[1]: t-Length\": \"11\", \n    \"Content-Type\": \"text/moo\", \n    \"Host\...
  
  
  6. Failure: Post text data (@test-post.R#28) -----------------------------------
  rawToChar(req$content) not equal to paste0(txt2, "\n", collapse = "").
  1/1 mismatches
  x[1]: "{\n  \"args\": {}, \n  \"data\": \"moo=moomooo\", \n  \"files\": {}, \n  
  x[1]: \"form\": {}, \n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Accept-
  x[1]: Encoding\": \"gzip, deflate\", \n    \"Cache-Control\": \"no-cache\", \n  
  x[1]:   \"Connect-Time\": \"0\", \n    \"Connection\": \"close\", \n    \"Conten
  x[1]: t-Length\": \"11\", \n    \"Content-Type\": \"text/moo\", \n    \"Host\...
  y[1]: "{\n  \"args\": {}, \n  \"data\": \"moo=moomooo\", \n  \"files\": {}, \n  
  y[1]: \"form\": {}, \n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Accept-
  y[1]: Encoding\": \"gzip, deflate\", \n    \"Cache-Control\": \"no-cache\", \n  
  y[1]:   \"Connect-Time\": \"1\", \n    \"Connection\": \"close\", \n    \"Conten
  y[1]: t-Length\": \"11\", \n    \"Content-Type\": \"text/moo\", \n    \"Host\...
  
  
  testthat results ================================================================
  OK: 117 SKIPPED: 0 FAILED: 6
  1. Failure: Invalid domain raises an error (@test-certificates.R#6) 
  2. Error: Invalid domain raises an error (@test-certificates.R#7) 
  3. Failure: Add some cookies (@test-cookies.R#16) 
  4. Failure: Add some cookies (@test-cookies.R#17) 
  5. Failure: Post text data (@test-post.R#21) 
  6. Failure: Post text data (@test-post.R#28) 
  
  Error: testthat unit tests failed
  Execution halted