Running ‘testthat.R’ [3s/351s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(Rxnat)
  > 
  > test_check("Rxnat")
  ── 1. Error: xnat_api (@test-xnat-api.R#11)  ───────────────────────────────────
  Timeout was reached: Operation timed out after 10004 milliseconds with 0 out of 0 bytes received
  1: testthat::expect_equal(basename(download_xnat_file(nitrc, "/data/experiments/xnat_E00026/scans/anat_mprage_anonymized/resources/3967/files/scan_mprage_anonymized.nii.gz", 
         file_dir = tempdir())), "scan_mprage_anonymized.nii.gz") at testthat/test-xnat-api.R:11
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: basename(download_xnat_file(nitrc, "/data/experiments/xnat_E00026/scans/anat_mprage_anonymized/resources/3967/files/scan_mprage_anonymized.nii.gz", 
         file_dir = tempdir()))
  5: download_xnat_file(nitrc, "/data/experiments/xnat_E00026/scans/anat_mprage_anonymized/resources/3967/files/scan_mprage_anonymized.nii.gz", 
         file_dir = tempdir())
  6: conn$download_file(...)
  7: do.call("GET", args)
  8: GET(url = "https://nitrc.org/ir/data/experiments/xnat_E00026/scans/anat_mprage_anonymized/resources/3967/files/scan_mprage_anonymized.nii.gz", 
         structure(list(method = NULL, url = NULL, headers = NULL, fields = NULL, options = NULL, 
             auth_token = NULL, output = structure(list(path = "/tmp/RtmprfaqeS/scan_mprage_anonymized.nii.gz", 
                 file = NULL), class = c("write_disk", "write_function"))), class = "request"), 
         structure(list(method = NULL, url = NULL, headers = NULL, fields = NULL, options = list(
             cookie = "JSESSIONID=CAEEC8165FA31C5B3F83B2CF2F184045"), auth_token = NULL, 
             output = NULL), class = "request"))
  9: request_perform(req, hu$handle$handle)
  10: request_fetch(req$output, req$url, handle)
  11: request_fetch.write_disk(req$output, req$url, handle)
  12: curl::curl_fetch_disk(url, x$path, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 9 SKIPPED: 0 WARNINGS: 0 FAILED: 1
  1. Error: xnat_api (@test-xnat-api.R#11) 
  
  Error: testthat unit tests failed
  Execution halted