Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [4s/171s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(curl)
  > 
  > # Comply with CRAN policy: skip tests if no internet
  > if(curl::has_internet()){
  +   test_check("curl")
  + }
  This is libcurl version 7.64.0 with GnuTLS/3.6.6 
  Using test server: http://hb.opencpu.org 
  ── 1. Error: Error handling for non-blocking open (@test-blockopen.R#39)  ──────
  Timeout was reached: Connection timed out after 10021 milliseconds
  1: expect_is(read_text(con), "character") at testthat/test-blockopen.R:39
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: read_text(con)
  5: readLines(x) at testthat/test-blockopen.R:6
  
  ── 2. Error: Compression and destroying connection (@test-connection.R#7)  ─────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_equal(jsonlite::fromJSON(readLines(con))$deflate, TRUE) at testthat/test-connection.R:7
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: jsonlite::fromJSON(readLines(con))
  5: readLines(con)
  
  ── 3. Error: Connection interface (@test-connection.R#24)  ─────────────────────
  Handle is already in use elsewhere.
  1: expect_equal(jsonlite::fromJSON(con)$args$test, "blabla") at testthat/test-connection.R:24
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: jsonlite::fromJSON(con)
  5: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  6: parseJSON(txt, bigint_as_char)
  7: parse_con(txt, bigint_as_char)
  8: open(con, "rb")
  9: open.connection(con, "rb")
  
  ── 4. Error: Coockie with connection (@test-cookies.R#23)  ─────────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_equal(jsonlite::fromJSON(con)$cookies$foo, "123") at testthat/test-cookies.R:23
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: jsonlite::fromJSON(con)
  5: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  6: parseJSON(txt, bigint_as_char)
  7: parse_con(txt, bigint_as_char)
  8: open(con, "rb")
  9: open.connection(con, "rb")
  
  ── 5. Error: Opening and closing a connection (@test-handle.R#44)  ─────────────
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: open(con) at testthat/test-handle.R:44
  2: open.connection(con)
  
  ── 6. Error: Downloading to a file (@test-handle.R#73)  ────────────────────────
  Failed initialization
  1: curl_download(httpbin("get?test=boeboe"), tmp, handle = h) at testthat/test-handle.R:73
  
  ── 7. Failure: Timeout works (@test-multi.R#17)  ───────────────────────────────
  `out` not equal to list(success = 1, error = 2, pending = 1).
  Component "success": Mean absolute difference: 1
  Component "pending": Mean relative difference: 0.5
  
  ── 8. Failure: Timeout works (@test-multi.R#19)  ───────────────────────────────
  `out` not equal to list(success = 0, error = 0, pending = 1).
  Component "pending": Mean relative difference: 0.5
  
  ── 9. Failure: Timeout works (@test-multi.R#21)  ───────────────────────────────
  `out` not equal to list(success = 1, error = 0, pending = 0).
  Component "error": Mean relative difference: 1
  
  ── 10. Failure: Multi cancel works (@test-multi.R#52)  ─────────────────────────
  multi_run() not equal to list(success = 1, error = 0, pending = 0).
  Component "success": Mean absolute difference: 1
  Component "error": Mean relative difference: 1
  
  ── 11. Failure: Errors in Callbacks (@test-multi.R#72)  ────────────────────────
  `multi_run(pool = pool)` did not throw an error.
  
  ── 12. Error: Data callback (@test-multi.R#105)  ───────────────────────────────
  Connection timed out after 10001 milliseconds
  1: multi_run() at testthat/test-multi.R:105
  2: (function (..., call. = TRUE, domain = NULL) 
     {
         args <- list(...)
         if (length(args) == 1L && inherits(args[[1L]], "condition")) {
             cond <- args[[1L]]
             if (nargs() > 1L) 
                 warning("additional arguments ignored in stop()")
             message <- conditionMessage(cond)
             call <- conditionCall(cond)
             .Internal(.signalCondition(cond, message, call))
             .Internal(.dfltStop(message, call))
         }
         else .Internal(stop(call., .makeMessage(..., domain = domain)))
     })("Connection timed out after 10001 milliseconds")
  
  [1] "error"
  ── 13. Failure: callback protection (@test-multi.R#136)  ───────────────────────
  out$success not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  Connection timed out after 10000 millisecondsConnection timed out after 10000 millisecondsConnection timed out after 10000 millisecondsConnection timed out after 10000 millisecondsConnection timed out after 10000 milliseconds── 14. Error: Non blocking connections  (@test-nonblocking.R#7)  ───────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: open(con, "rb", blocking = FALSE) at testthat/test-nonblocking.R:7
  2: open.connection(con, "rb", blocking = FALSE)
  
  ── 15. Error: Small buffers (@test-nonblocking.R#57)  ──────────────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: open(con) at testthat/test-nonblocking.R:57
  2: open.connection(con)
  
  ── 16. Error: Post text data (@test-post.R#12)  ────────────────────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: curl_fetch_memory(httpbin("post"), handle = h) at testthat/test-post.R:12
  
  ── 17. Failure: File writer is closed at the end of the data callback (@test-wri
  jsonlite::validate(json) isn't true.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 142 SKIPPED: 2 FAILED: 17
  1. Error: Error handling for non-blocking open (@test-blockopen.R#39) 
  2. Error: Compression and destroying connection (@test-connection.R#7) 
  3. Error: Connection interface (@test-connection.R#24) 
  4. Error: Coockie with connection (@test-cookies.R#23) 
  5. Error: Opening and closing a connection (@test-handle.R#44) 
  6. Error: Downloading to a file (@test-handle.R#73) 
  7. Failure: Timeout works (@test-multi.R#17) 
  8. Failure: Timeout works (@test-multi.R#19) 
  9. Failure: Timeout works (@test-multi.R#21) 
  1. ...
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 3 (http://hb.opencpu.org/get)
  2: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (http://hb.opencpu.org/deflate)
  3: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (http://hb.opencpu.org/cookies)
  4: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (http://hb.opencpu.org/drip?duration=3&numbytes=50&code=200)
  5: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 3 (http://hb.opencpu.org/)
  Execution halted