Running ‘testthat.R’ [13s/172s]
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(BFS)
  > 
  > test_check("BFS")
   =>-----------------------------    4% |  ETA: 45s
   ===>---------------------------   10% |  ETA: 41s
   =====>-------------------------   17% |  ETA: 38s
   =======>-----------------------   23% |  ETA: 35s
   =========>---------------------   30% |  ETA: 32s
   ===========>-------------------   37% |  ETA: 29s
   =============>-----------------   43% |  ETA: 26s
   ===============>---------------   50% |  ETA: 23s
   =================>-------------   56% |  ETA: 20s
   ===================>-----------   63% |  ETA: 17s
   =====================>---------   70% |  ETA: 14s
   =======================>-------   76% |  ETA: 11s
   =========================>-----   83% |  ETA:  8s
   ===========================>---   90% |  ETA:  5s
   =============================>-   96% |  ETA:  2s
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 51 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bfs_download_asset.R:6:3'): bfs_download_asset() works ─────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_download(url = paste0("https://dam-api.bfs.admin.ch/hub/api/dam/assets/", 
      id, "/master"), destfile = destfile, quiet = quiet, mode = mode, 
      handle = handle)`: Timeout was reached [dam-api.bfs.admin.ch]: Resolving timed out after 10000 milliseconds
  Backtrace:
      ▆
   1. ├─BFS::bfs_download_asset(number_asset = "24367729", destfile = tmp) at test-bfs_download_asset.R:6:3
   2. │ └─curl::curl_download(...)
   3. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 51 ]
  Error: Test failures
  Execution halted