Running ‘testthat.R’ [30s/434s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(databraryr)
  Welcome to the databraryr package.
  > 
  > test_check("databraryr")
  trying URL 'https:/nyu.databrary.org/slot/9807/-/asset/1/download'
  Content type 'video/mp4' length 394499 bytes (385 KB)
  ==================================================
  downloaded 385 KB
  
  Downloading  87% ==========================>----   0s
  Waiting 4s for retry backoff =======>----------------------- 
  Waiting 4s for retry backoff ==========================>---- 
  Waiting 4s for retry backoff =============================>- 
  Waiting 2s for retry backoff ==============>---------------- 
  Waiting 2s for retry backoff =============================>- 
  Waiting 4s for retry backoff ========>---------------------- 
  Waiting 4s for retry backoff ====================>---------- 
  Waiting 4s for retry backoff ==============================> 
  Waiting 3s for retry backoff =============>----------------- 
  Waiting 3s for retry backoff =============================>- 
  
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     Waiting 2s for retry backoff ==============>---------------- 
  Waiting 2s for retry backoff =============================>- 
  Waiting 3s for retry backoff =============>----------------- 
  Waiting 3s for retry backoff =============================>- 
  
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 95 kB     
  Downloading: 95 kB     
  Downloading: 95 kB     
  Downloading: 95 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 65 kB     
  Downloading: 82 kB     
  Downloading: 82 kB     
  Downloading: 95 kB     
  Downloading: 95 kB     
  Downloading: 95 kB     
  Downloading: 95 kB     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 770 B     
  Downloading: 770 B     
  Downloading: 770 B     
  Downloading: 770 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 4.1 kB     
  Downloading: 4.1 kB     
  Downloading: 4.1 kB     
  Downloading: 4.1 kB     
  Not logged in. Only public information will be returned.
  Waiting 2s for retry backoff ==============>---------------- 
  Waiting 2s for retry backoff =============================>- 
  
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 3.9 kB     
  Downloading: 120 B     
  Downloading: 120 B     
  Downloading: 120 B     
  Downloading: 120 B     People info: ==========>--------------------   33% |  ETA:  3s
  
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     People info: ====================>----------   67% |  ETA:  2s
  
  Downloading: 83 B     
  Downloading: 83 B     
  Downloading: 83 B     
  Downloading: 83 B     
  Not logged in. Only public information will be returned.
  
  Not logged in. Only public information will be returned.
  
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 1.6 kB     
  Downloading: 4.1 kB     
  Downloading: 4.1 kB     
  Downloading: 4.1 kB     
  Downloading: 4.1 kB     
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  No encoding supplied: defaulting to UTF-8.
  
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 990 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 810 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 800 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     
  Downloading: 240 B     [ FAIL 5 | WARN 1 | SKIP 0 | PASS 721 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-download_session_zip.R:28:3'): download_session_zip returns string ──
  is.character(download_session_zip()) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-download_volume_zip.R:24:3'): download_volume_zip returns string ──
  is.character(download_volume_zip()) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-get_session_by_name.R:3:3'): get_session_by_name returns a list or is NULL. ──
  <assertError/simpleError/error/condition>
  Error: volume_json is not a list
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test-get_session_by_name.R:3:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─databraryr::get_session_by_name()
   5.   └─databraryr (local) extract_session_metadata(volume_json)
   6.     └─assertthat::assert_that(is.list(volume_json))
  ── Error ('test-list_sessions.R:3:3'): list_sessions returns data.frame ────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(vol_id, list_one_session, vb = vb)`: i In index: 1.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [nyu.databrary.org] Failed to connect to nyu.databrary.org port 443 after 10002 ms: Timeout was reached
  Backtrace:
       ▆
    1. ├─testthat::expect_true(class(list_sessions()) == "data.frame") at test-list_sessions.R:3:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─databraryr::list_sessions()
    5. │ ├─purrr::map(vol_id, list_one_session, vb = vb) %>% purrr::list_rbind()
    6. │ └─purrr::map(vol_id, list_one_session, vb = vb)
    7. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    8. │     ├─purrr:::with_indexed_errors(...)
    9. │     │ └─base::withCallingHandlers(...)
   10. │     ├─purrr:::call_with_cleanup(...)
   11. │     └─databraryr (local) .f(.x[[i]], ...)
   12. │       └─databraryr::GET_db_contents(...)
   13. │         └─httr::GET(URL, httr::progress())
   14. │           └─httr:::request_perform(req, hu$handle$handle)
   15. │             ├─httr:::request_fetch(req$output, req$url, handle)
   16. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   17. │               └─curl::curl_fetch_memory(url, handle = handle)
   18. ├─purrr::list_rbind(.)
   19. │ └─purrr:::check_list_of_data_frames(x)
   20. │   └─vctrs::vec_check_list(x, call = error_call)
   21. │     └─vctrs::obj_check_list(x, ..., arg = arg, call = call)
   22. └─base::.handleSimpleError(...)
   23.   └─purrr (local) h(simpleError(msg, call))
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test-list_sessions_in_volume.R:3:3'): list_sessions_in_volume returns data.frame ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(vol_id, list_one_session, vb = vb)`: i In index: 1.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [nyu.databrary.org] Failed to connect to nyu.databrary.org port 443 after 10002 ms: Timeout was reached
  Backtrace:
       ▆
    1. ├─testthat::expect_true(class(list_sessions_in_volume()) == "data.frame") at test-list_sessions_in_volume.R:3:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─databraryr::list_sessions_in_volume()
    5. │ └─databraryr::list_sessions(vol_id = vol_id, vb = vb)
    6. │   ├─purrr::map(vol_id, list_one_session, vb = vb) %>% purrr::list_rbind()
    7. │   └─purrr::map(vol_id, list_one_session, vb = vb)
    8. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    9. │       ├─purrr:::with_indexed_errors(...)
   10. │       │ └─base::withCallingHandlers(...)
   11. │       ├─purrr:::call_with_cleanup(...)
   12. │       └─databraryr (local) .f(.x[[i]], ...)
   13. │         └─databraryr::GET_db_contents(...)
   14. │           └─httr::GET(URL, httr::progress())
   15. │             └─httr:::request_perform(req, hu$handle$handle)
   16. │               ├─httr:::request_fetch(req$output, req$url, handle)
   17. │               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   18. │                 └─curl::curl_fetch_memory(url, handle = handle)
   19. ├─purrr::list_rbind(.)
   20. │ └─purrr:::check_list_of_data_frames(x)
   21. │   └─vctrs::vec_check_list(x, call = error_call)
   22. │     └─vctrs::obj_check_list(x, ..., arg = arg, call = call)
   23. └─base::.handleSimpleError(...)
   24.   └─purrr (local) h(simpleError(msg, call))
   25.     └─cli::cli_abort(...)
   26.       └─rlang::abort(...)
  
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 721 ]
  Error: Test failures
  Execution halted