Running ‘testthat.R’ [24s/550s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(f1dataR)
  Loading required package: reticulate
  Note: f1dataR will cache for up to 24 hours, 
  or until the end of the R session.
  > 
  > test_check("f1dataR")
  Waiting 4s to retry ======>------------------------ 
  Waiting 4s to retry ==============>---------------- 
  Waiting 4s to retry =============================>- 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry =============================>- 
  Waiting 2s to retry ============>------------------ 
  Waiting 2s to retry ========================>------ 
  Waiting 2s to retry =============================>- 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 7s to retry ====>-------------------------- 
  Waiting 7s to retry ===============>--------------- 
  Waiting 7s to retry =============================>- 
  Waiting 7s to retry ==============================> 
  Waiting 12s to retry ======>------------------------ 
  Waiting 12s to retry ==============>---------------- 
  Waiting 12s to retry =====================>--------- 
  Waiting 12s to retry =============================>- 
  Waiting 12s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 5s to retry ======>------------------------ 
  Waiting 5s to retry =============>----------------- 
  Waiting 5s to retry ==============================> 
  Waiting 4s to retry ======>------------------------ 
  Waiting 4s to retry =======================>------- 
  Waiting 4s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry =====================>--------- 
  Waiting 4s to retry =============================>- 
  Waiting 8s to retry ======>------------------------ 
  Waiting 8s to retry ==================>------------ 
  Waiting 8s to retry =============================>- 
  Waiting 8s to retry ==============================> 
  Waiting 2s to retry ===========>------------------- 
  Waiting 2s to retry =============>----------------- 
  Waiting 2s to retry =============================>- 
  Waiting 7s to retry ======>------------------------ 
  Waiting 7s to retry ==================>------------ 
  Waiting 7s to retry ==============================> 
  Waiting 11s to retry ==>---------------------------- 
  Waiting 11s to retry ========>---------------------- 
  Waiting 11s to retry ================>-------------- 
  Waiting 11s to retry ========================>------ 
  Waiting 11s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 6s to retry =====>------------------------- 
  Waiting 6s to retry ==============>---------------- 
  Waiting 6s to retry ==============================> 
  Waiting 9s to retry ===>--------------------------- 
  Waiting 9s to retry =========>--------------------- 
  Waiting 9s to retry ===================>----------- 
  Waiting 9s to retry ==============================> 
  Waiting 9s to retry ==============================> 
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry ============================>-- 
  Waiting 4s to retry ==============================> 
  Waiting 7s to retry ===========>------------------- 
  Waiting 7s to retry =======================>------- 
  Waiting 7s to retry ==============================> 
  Waiting 8s to retry =====>------------------------- 
  Waiting 8s to retry =================>------------- 
  Waiting 8s to retry =============================>- 
  Waiting 8s to retry ==============================> 
  Waiting 4s to retry ========>---------------------- 
  Waiting 4s to retry =======================>------- 
  Waiting 4s to retry =============================>- 
  Waiting 3s to retry ====================>---------- 
  Waiting 3s to retry =============================>- 
  Waiting 4s to retry ================>-------------- 
  Waiting 4s to retry =============================>- 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 2s to retry ==============>---------------- 
  Waiting 2s to retry =============================>- 
  Waiting 8s to retry ====>-------------------------- 
  Waiting 8s to retry ===========>------------------- 
  Waiting 8s to retry =======================>------- 
  Waiting 8s to retry ==============================> 
  Waiting 7s to retry ====>-------------------------- 
  Waiting 7s to retry ================>-------------- 
  Waiting 7s to retry ============================>-- 
  Waiting 7s to retry ==============================> 
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry =============================>- 
  Waiting 4s to retry =============================>- 
  Waiting 5s to retry ===============>--------------- 
  Waiting 5s to retry ==============================> 
  Waiting 15s to retry ==>---------------------------- 
  Waiting 15s to retry ======>------------------------ 
  Waiting 15s to retry ============>------------------ 
  Waiting 15s to retry ==================>------------ 
  Waiting 15s to retry ========================>------ 
  Waiting 15s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 3s to retry ==========>-------------------- 
  Waiting 3s to retry =============================>- 
  Waiting 8s to retry ===>--------------------------- 
  Waiting 8s to retry ==============>---------------- 
  Waiting 8s to retry ==========================>---- 
  Waiting 8s to retry ==============================> 
  Waiting 14s to retry ====>-------------------------- 
  Waiting 14s to retry ==========>-------------------- 
  Waiting 14s to retry ================>-------------- 
  Waiting 14s to retry =======================>------- 
  Waiting 14s to retry =============================>- 
  Waiting 14s to retry ==============================> 
  Waiting 2s to retry =============>----------------- 
  Waiting 2s to retry =============================>- 
  Waiting 5s to retry ======>------------------------ 
  Waiting 5s to retry ========================>------ 
  Waiting 5s to retry ==============================> 
  Waiting 12s to retry =====>------------------------- 
  Waiting 12s to retry =============>----------------- 
  Waiting 12s to retry ====================>---------- 
  Waiting 12s to retry ============================>-- 
  Waiting 12s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 2s to retry ============>------------------ 
  Waiting 2s to retry =============================>- 
  Waiting 5s to retry ======>------------------------ 
  Waiting 5s to retry ======================>-------- 
  Waiting 5s to retry ==============================> 
  Waiting 8s to retry ======>------------------------ 
  Waiting 8s to retry =================>------------- 
  Waiting 8s to retry ============================>-- 
  Waiting 8s to retry ==============================> 
  Waiting 3s to retry ==========>-------------------- 
  Waiting 3s to retry =============================>- 
  Waiting 2s to retry ============>------------------ 
  Waiting 2s to retry =============================>- 
  Waiting 14s to retry ==>---------------------------- 
  Waiting 14s to retry =========>--------------------- 
  Waiting 14s to retry ===============>--------------- 
  Waiting 14s to retry =====================>--------- 
  Waiting 14s to retry ============================>-- 
  Waiting 14s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 3s to retry ==========>-------------------- 
  Waiting 3s to retry =============================>- 
  Waiting 5s to retry ======>------------------------ 
  Waiting 5s to retry ====================>---------- 
  Waiting 5s to retry ==============================> 
  Waiting 12s to retry ===>--------------------------- 
  Waiting 12s to retry ===========>------------------- 
  Waiting 12s to retry ==================>------------ 
  Waiting 12s to retry =========================>----- 
  Waiting 12s to retry ==============================> 
  Waiting 2s to retry ===========>------------------- 
  Waiting 2s to retry =============================>- 
  Waiting 2s to retry ==============>---------------- 
  Waiting 2s to retry =============================>- 
  Waiting 13s to retry ===>--------------------------- 
  Waiting 13s to retry ==========>-------------------- 
  Waiting 13s to retry =================>------------- 
  Waiting 13s to retry ========================>------ 
  Waiting 13s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry =========>--------------------- 
  Waiting 4s to retry =============================>- 
  Waiting 6s to retry ====>-------------------------- 
  Waiting 6s to retry ===============>--------------- 
  Waiting 6s to retry =============================>- 
  Waiting 6s to retry ==============================> 
  Waiting 6s to retry ==============>---------------- 
  Waiting 6s to retry ==============================> 
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry =========>--------------------- 
  Waiting 4s to retry ==============================> 
  Waiting 8s to retry ===>--------------------------- 
  Waiting 8s to retry ============>------------------ 
  Waiting 8s to retry =======================>------- 
  Waiting 8s to retry ==============================> 
  Waiting 15s to retry ==>---------------------------- 
  Waiting 15s to retry ========>---------------------- 
  Waiting 15s to retry ==============>---------------- 
  Waiting 15s to retry =====================>--------- 
  Waiting 15s to retry ==========================>---- 
  Waiting 15s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 3s to retry =========>--------------------- 
  Waiting 3s to retry ========================>------ 
  Waiting 3s to retry =============================>- 
  Waiting 10s to retry ===>--------------------------- 
  Waiting 10s to retry ==========>-------------------- 
  Waiting 10s to retry ===================>----------- 
  Waiting 10s to retry ============================>-- 
  Waiting 10s to retry ==============================> 
  Waiting 6s to retry =====>------------------------- 
  Waiting 6s to retry ==================>------------ 
  Waiting 6s to retry ==============================> 
  Waiting 5s to retry =====>------------------------- 
  Waiting 5s to retry =====================>--------- 
  Waiting 5s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 2s to retry ==============>---------------- 
  Waiting 2s to retry =============================>- 
  Waiting 2s to retry ==========================>---- 
  Waiting 2s to retry =============================>- 
  Waiting 8s to retry =========>--------------------- 
  Waiting 8s to retry =====================>--------- 
  Waiting 8s to retry ==============================> 
  Waiting 15s to retry ==>---------------------------- 
  Waiting 15s to retry ======>------------------------ 
  Waiting 15s to retry ============>------------------ 
  Waiting 15s to retry ==================>------------ 
  Waiting 15s to retry ========================>------ 
  Waiting 15s to retry ==============================> 
  Waiting 4s to retry ========>---------------------- 
  Waiting 4s to retry ===================>----------- 
  Waiting 4s to retry ==============================> 
  Waiting 6s to retry ========>---------------------- 
  Waiting 6s to retry =======================>------- 
  Waiting 6s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 2s to retry ==============>---------------- 
  Waiting 2s to retry =============================>- 
  Waiting 4s to retry =======>----------------------- 
  Waiting 4s to retry =======================>------- 
  Waiting 4s to retry ==============================> 
  Waiting 3s to retry ====================>---------- 
  Waiting 3s to retry =============================>- 
  Waiting 11s to retry =====>------------------------- 
  Waiting 11s to retry =============>----------------- 
  Waiting 11s to retry =====================>--------- 
  Waiting 11s to retry =============================>- 
  Waiting 11s to retry ==============================> 
  Waiting 2s to retry ==============>---------------- 
  Waiting 2s to retry =============================>- 
  Waiting 8s to retry ====>-------------------------- 
  Waiting 8s to retry ===========>------------------- 
  Waiting 8s to retry =======================>------- 
  Waiting 8s to retry ==============================> 
  Waiting 4s to retry ========>---------------------- 
  Waiting 4s to retry =============================>- 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 2s to retry ==============>---------------- 
  Waiting 2s to retry =============================>- 
  Waiting 6s to retry ========>---------------------- 
  Waiting 6s to retry ========================>------ 
  Waiting 6s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  Waiting 4s to retry ========>---------------------- 
  Waiting 4s to retry =========================>----- 
  Waiting 4s to retry =============================>- 
  Waiting 6s to retry ============>------------------ 
  Waiting 6s to retry ============================>-- 
  Waiting 6s to retry ==============================> 
  Waiting 8s to retry =========>--------------------- 
  Waiting 8s to retry ===================>----------- 
  Waiting 8s to retry ==============================> 
  f1dataR: Error getting current season from ergast: Error: ! SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  
  Falling back to manually determined 'current' season
  [ FAIL 11 | WARN 0 | SKIP 5 | PASS 10 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • fastf1 not available for testing (5): 'test-load_driver_telemetry.R:3:3',
    'test-load_race_session.R:3:3', 'test-load_session_laps.R:3:3',
    'test-plot_fastest.R:3:3', 'test-utils.R:38:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (???): Cache Clearing works for memoised functions to file ────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`()
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): load_ciruits works ─────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): constructors loads ─────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`()
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): Drivers Load works ─────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): Lap Load works ─────────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021, round = 1)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): Pitstop Load works ─────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021, round = 1)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): Quali Load works ───────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021, round = 1)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): Results Load works ─────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021, round = 1)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): Schedule Load works ────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): sprint works ───────────────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: Timeout was reached: [ergast.com] Failed to connect to ergast.com port 443 after 10001 ms: Timeout was reached
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021, round = 10)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error (???): load Standings works ───────────────────────────────────────────
  <httr2_failed/rlang_error/error/condition>
  Error: SSL peer certificate or SSH remote key was not OK: [ergast.com] server certificate verification failed. CAfile: none CRLfile: none
  Backtrace:
      ▆
   1. ├─f1dataR (local) `<fn>`(season = 2021)
   2. │ └─f1dataR:::get_ergast_content(url)
   3. │   └─ergast_raw %>% httr2::req_perform()
   4. └─httr2::req_perform(.)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  
  [ FAIL 11 | WARN 0 | SKIP 5 | PASS 10 ]
  Error: Test failures
  Execution halted