Running 'testthat.R' [104s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RColetum)
  > 
  > test_check("RColetum")
  -- 1. Failure: error by wrong token (@test-GetAnswers.R#630)  ------------------
  `GetAnswers("notexisttoken", 5705)` threw an error with unexpected message.
  Expected match: "Error 401: O token informado não é válido para o acesso."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 2. Failure: error by wrong token (@test-GetAnswers.R#634)  ------------------
  `GetAnswers("", 5705)` threw an error with unexpected message.
  Expected match: "Error 401: Unauthorized"
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 3. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#641)  -----
  `GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5715)` threw an error with unexpected message.
  Expected match: "Form not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 4. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#646)  -----
  `GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", nameForm = "RColetum Test - NaN")` threw an error with unexpected message.
  Expected match: "Name not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 5. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#652)  -----
  `GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5841, "RColetum Test - NaN")` threw an error with unexpected message.
  Expected match: "Form not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 6. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#661)  -----
  `GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5715, "RColetum Test - Iris")` threw an error with unexpected message.
  Expected match: "Form not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 7. Failure: errors in the bad use of filters parameters (@test-GetAnswers.R#6
  `GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5705, source = "web")` threw an error with unexpected message.
  Expected match: "The option 'web' are not avaliable for the filter 'source'. The avaliable options to this filter are: 'web_public' or 'web_private' or 'mobile'."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 8. Failure: errors in the bad use of filters parameters (@test-GetAnswers.R#6
  `GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5705, source = "private")` threw an error with unexpected message.
  Expected match: "The option 'private' are not avaliable for the filter 'source'. The avaliable options to this filter are: 'web_public' or 'web_private' or 'mobile'."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 9. Error: warming when is informed the idForm and nameForm (@test-GetAnswers.
  Failed to connect to www.coletum.com port 80: Connection refused
  1: expect_warning(GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5705, "RColetum Test - Iris"), 
         "The idForm and nameForm are provided. Ignoring the nameForm.") at testthat/test-GetAnswers.R:755
  2: quasi_capture(enquo(object), label, capture_warnings)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(.quo), get_env(.quo))
  6: GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5705, "RColetum Test - Iris")
  7: GetFormStructure(token, idForm)
  8: requestFunction(query = query, token = token)
  9: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  10: request_perform(req, hu$handle$handle)
  11: request_fetch(req$output, req$url, handle)
  12: request_fetch.write_memory(req$output, req$url, handle)
  13: curl::curl_fetch_memory(url, handle = handle)
  
  -- 10. Error: get answers in simple form (@test-GetAnswers.R#764)  -------------
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5705) at testthat/test-GetAnswers.R:764
  2: GetFormStructure(token, idForm)
  3: requestFunction(query = query, token = token)
  4: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  -- 11. Error: get answers in more complex forms (@test-GetAnswers.R#897)  ------
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetAnswers("cizio7xeohwgc8k4g4koo008kkoocwg", 5719) at testthat/test-GetAnswers.R:897
  2: GetFormStructure(token, idForm)
  3: requestFunction(query = query, token = token)
  4: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  -- 12. Error: get answers in single data frame (@test-GetAnswers.R#910)  -------
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetAnswers(token = "cizio7xeohwgc8k4g4koo008kkoocwg", idForm = 5719, singleDataFrame = TRUE) at testthat/test-GetAnswers.R:910
  2: GetFormStructure(token, idForm)
  3: requestFunction(query = query, token = token)
  4: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  -- 13. Error: Test GetAnswers on a single data frame in a very complex forms,
    
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetAnswers(token = "cizio7xeohwgc8k4g4koo008kkoocwg", idForm = 5722, singleDataFrame = TRUE) at testthat/test-GetAnswersComplexForm.R:81944
  2: GetFormStructure(token, idForm)
  3: requestFunction(query = query, token = token)
  4: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  -- 14. Failure: error by wrong token (@test-GetFormStructure.R#4)  -------------
  `GetFormStructure("notexisttoken", 5705)` threw an error with unexpected message.
  Expected match: "Error 401: O token informado não é válido para o acesso."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 15. Failure: error by wrong token (@test-GetFormStructure.R#8)  -------------
  `GetFormStructure("", 5705)` threw an error with unexpected message.
  Expected match: "Error 401: Unauthorized"
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 16. Failure: error by wrong idForm or nameForm (@test-GetFormStructure.R#15) 
  `GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5715)` threw an error with unexpected message.
  Expected match: "Form not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 17. Failure: error by wrong idForm or nameForm (@test-GetFormStructure.R#20) 
  `GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", nameForm = "RColetum Test - NaN")` threw an error with unexpected message.
  Expected match: "Name not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 18. Failure: error by wrong idForm or nameForm (@test-GetFormStructure.R#26) 
  `GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5841, "RColetum Test - NaN")` threw an error with unexpected message.
  Expected match: "Form not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 19. Failure: error by wrong idForm or nameForm (@test-GetFormStructure.R#35) 
  `GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5715, "RColetum Test - Iris")` threw an error with unexpected message.
  Expected match: "Form not found."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 20. Error: Warming when is informed the idForm and nameForm (@test-GetFormStr
  Failed to connect to www.coletum.com port 80: Connection refused
  1: expect_warning(GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5705, "RColetum Test - Iris"), 
         "The idForm and nameForm are provided. Ignoring the nameForm.") at testthat/test-GetFormStructure.R:52
  2: quasi_capture(enquo(object), label, capture_warnings)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(.quo), get_env(.quo))
  6: GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5705, "RColetum Test - Iris")
  7: requestFunction(query = query, token = token)
  8: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  9: request_perform(req, hu$handle$handle)
  10: request_fetch(req$output, req$url, handle)
  11: request_fetch.write_memory(req$output, req$url, handle)
  12: curl::curl_fetch_memory(url, handle = handle)
  
  -- 21. Error: GetFormStructure in simple form (@test-GetFormStructure.R#111)  --
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5705) at testthat/test-GetFormStructure.R:111
  2: requestFunction(query = query, token = token)
  3: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  4: request_perform(req, hu$handle$handle)
  5: request_fetch(req$output, req$url, handle)
  6: request_fetch.write_memory(req$output, req$url, handle)
  7: curl::curl_fetch_memory(url, handle = handle)
  
  -- 22. Error: GetFormStructure in complex and nested form (@test-GetFormStructur
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetFormStructure("cizio7xeohwgc8k4g4koo008kkoocwg", 5722) at testthat/test-GetFormStructure.R:221
  2: requestFunction(query = query, token = token)
  3: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  4: request_perform(req, hu$handle$handle)
  5: request_fetch(req$output, req$url, handle)
  6: request_fetch.write_memory(req$output, req$url, handle)
  7: curl::curl_fetch_memory(url, handle = handle)
  
  -- 23. Failure: error by wrong token (@test-GetForms.R#38)  --------------------
  `GetForms("notexisttoken")` threw an error with unexpected message.
  Expected match: "Error 401: O token informado não é válido para o acesso."
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 24. Failure: error by wrong token (@test-GetForms.R#42)  --------------------
  `GetForms("")` threw an error with unexpected message.
  Expected match: "Error 401: Unauthorized"
  Actual message: "Failed to connect to www.coletum.com port 80: Connection refused"
  
  -- 25. Error: get forms with no filter (@test-GetForms.R#74)  ------------------
  Failed to connect to www.coletum.com port 80: Connection refused
  1: dplyr::arrange(GetForms("cizio7xeohwgc8k4g4koo008kkoocwg"), name, id) at testthat/test-GetForms.R:74
  2: GetForms("cizio7xeohwgc8k4g4koo008kkoocwg")
  3: requestFunction(query = query, token = token)
  4: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  -- 26. Error: get forms with the filters (@test-GetForms.R#81)  ----------------
  Failed to connect to www.coletum.com port 80: Connection refused
  1: GetForms("cizio7xeohwgc8k4g4koo008kkoocwg", status = "disabled") at testthat/test-GetForms.R:81
  2: requestFunction(query = query, token = token)
  3: httr::GET(url = url, config = httr::add_headers(Token = token), query = list(query = query), 
         encode = "json")
  4: request_perform(req, hu$handle$handle)
  5: request_fetch(req$output, req$url, handle)
  6: request_fetch.write_memory(req$output, req$url, handle)
  7: curl::curl_fetch_memory(url, handle = handle)
  
  == testthat results  ===========================================================
  OK: 19 SKIPPED: 0 WARNINGS: 0 FAILED: 26
  1. Failure: error by wrong token (@test-GetAnswers.R#630) 
  2. Failure: error by wrong token (@test-GetAnswers.R#634) 
  3. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#641) 
  4. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#646) 
  5. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#652) 
  6. Failure: error by wrong idForm or nameForm (@test-GetAnswers.R#661) 
  7. Failure: errors in the bad use of filters parameters (@test-GetAnswers.R#685) 
  8. Failure: errors in the bad use of filters parameters (@test-GetAnswers.R#694) 
  9. Error: warming when is informed the idForm and nameForm (@test-GetAnswers.R#755) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted