Running ‘testthat.R’ [21s/585s]
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
  
  Waiting 3s for retry backoff ===========>------------------- 
  Waiting 3s for retry backoff =======================>------- 
  Waiting 3s for retry backoff =============================>- 
  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 ==============================> 
  
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     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 ==============================> 
  
  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     Waiting 3s for retry backoff =========>--------------------- 
  Waiting 3s for retry backoff =============================>- 
  
  Downloading: 16 kB     
  Downloading: 16 kB     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 49 kB     
  Downloading: 49 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: 16 kB     
  Downloading: 16 kB     
  Downloading: 33 kB     
  Downloading: 33 kB     
  Downloading: 49 kB     
  Downloading: 49 kB     
  Downloading: 65 kB     
  Downloading: 65 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.
  
  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     Waiting 3s for retry backoff ==========>-------------------- 
  Waiting 3s for retry backoff =============================>- 
  Waiting 3s for retry backoff ============>------------------ 
  Waiting 3s for retry backoff ==============================> 
  
  Downloading: 120 B     
  Downloading: 120 B     
  Downloading: 120 B     
  Downloading: 120 B     People info: ==========>--------------------   33% |  ETA: 11s
  
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     
  Downloading: 170 B     People info: ====================>----------   67% |  ETA:  5s
  
  Downloading: 83 B     
  Downloading: 83 B     
  Downloading: 83 B     
  Downloading: 83 B     Waiting 4s for retry backoff =======>----------------------- 
  Waiting 4s for retry backoff ============================>-- 
  Waiting 4s for retry backoff ==============================> 
  
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  Downloading: 3.7 kB     
  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     Waiting 4s for retry backoff ========>---------------------- 
  Waiting 4s for retry backoff ===========>------------------- 
  Waiting 4s for retry backoff =============================>- 
  Waiting 4s for retry backoff =======>----------------------- 
  Waiting 4s for retry backoff ================>-------------- 
  Waiting 4s for retry backoff ==============================> 
  
  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 7 | WARN 1 | SKIP 0 | PASS 719 ]
  
  ══ 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 
  ── Failure ('test-get_session_by_id.R:3:3'): get_session_by_id returns a list or is NULL. ──
  (is.null(get_session_by_id()) || ("list" %in% class(get_session_by_id()))) 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))
  ── Failure ('test-get_volume_by_id.R:3:3'): get_volume_by_id returns a list or is NULL. ──
  (is.null(get_volume_by_id()) || ("list" %in% class(get_volume_by_id()))) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-list_party_affiliates.R:3:3'): list_party_affiliates returns a data frame or is NULL. ──
  (is.null(list_party_affiliates()) || ("data.frame" %in% class(list_party_affiliates()))) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-list_volume_sessions.R:3:3'): list_volume_sessions returns data.frame given valid vol_id ──
  "data.frame" %in% class(list_volume_sessions()) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 7 | WARN 1 | SKIP 0 | PASS 719 ]
  Error: Test failures
  Execution halted