Running 'testthat.R' [48s]
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")
   ===============>---------------   50% |  ETA: 11s
   ===============>---------------   50% |  ETA: 11s
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 10 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bfs_download_asset.R:3:3'): bfs_download_asset() works ─────────
  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: [] Resolving timed out after 10014 milliseconds
  Backtrace:
      ▆
   1. └─BFS::bfs_download_asset(number_asset = "24025646", destfile = tmp) at test-bfs_download_asset.R:3:2
   2.   └─curl::curl_download(...)
  ── Error ('test-bfs_get_asset_metadata.R:2:3'): bfs_get_asset_metadata() returns a none-empty list ──
  <httr2_failed/rlang_error/error/condition>
  Error: Could not resolve host: dam-api.bfs.admin.ch
  Backtrace:
       ▆
    1. ├─BFS::bfs_get_asset_metadata(number_asset = "24367729") at test-bfs_get_asset_metadata.R:2:2
    2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
    3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
    4. │ └─httr2:::check_response(resp)
    5. │   └─httr2:::is_response(req)
    6. └─httr2::req_perform(.)
    7.   └─base::tryCatch(...)
    8.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.         └─value[[3L]](cond)
  ── Error ('test-bfs_get_asset_metadata.R:8:3'): bfs_get_asset_metadata() returns a none-empty list ──
  <httr2_failed/rlang_error/error/condition>
  Error: Could not resolve host: dam-api.bfs.admin.ch
  Backtrace:
       ▆
    1. ├─BFS::bfs_get_asset_metadata(number_bfs = "px-x-1502040100_131") at test-bfs_get_asset_metadata.R:8:2
    2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
    3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
    4. │ └─httr2:::check_response(resp)
    5. │   └─httr2:::is_response(req)
    6. └─httr2::req_perform(.)
    7.   └─base::tryCatch(...)
    8.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.         └─value[[3L]](cond)
  ── Failure ('test-bfs_get_catalog_data.R:4:3'): bfs_get_catalog_data() returns a none-empty data.frame ──
  nrow(df_catalog_data) (`actual`) not equal to 40 (`expected`).
  
    `actual`:  0
  `expected`: 40
  ── Error ('test-bfs_get_catalog_geodata.R:2:3'): bfs_get_catalog_geodata() works ──
  Error in `open.connection(x, "rb")`: Timeout was reached: [data.geo.admin.ch] Resolving timed out after 10014 milliseconds
  Backtrace:
       ▆
    1. ├─BFS::bfs_get_catalog_geodata(include_metadata = FALSE) at test-bfs_get_catalog_geodata.R:2:2
    2. │ ├─... %>% rvest::html_elements("a")
    3. │ ├─xml2::read_html("https://data.geo.admin.ch/")
    4. │ └─xml2:::read_html.default("https://data.geo.admin.ch/")
    5. │   ├─base::suppressWarnings(...)
    6. │   │ └─base::withCallingHandlers(...)
    7. │   ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
    8. │   └─xml2:::read_xml.character(...)
    9. │     └─xml2:::read_xml.connection(...)
   10. │       ├─base::open(x, "rb")
   11. │       └─base::open.connection(x, "rb")
   12. ├─rvest::html_elements(., "a")
   13. └─rvest::html_element(., "#data")
  ── Failure ('test-bfs_get_catalog_tables.R:4:3'): bfs_get_catalog_tables() returns a none-empty data.frame ──
  nrow(df_tables) (`actual`) not equal to 40 (`expected`).
  
    `actual`:  0
  `expected`: 40
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 10 ]
  Error: Test failures
  Execution halted