Running ‘test-async.R’ [18s/21s]
  Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/test-async.R’ failed.
Complete output:
  > 
  > if (file.exists("async")) {
  +   library(testthat)
  +   library(pkgcache)
  +   test <- function() {
  +     package <- "pkgcache"
  +     env_test <- asNamespace("testthat")$env_test
  +     env_test$in_test <- TRUE
  +     env_test$package <- package
  +     on.exit({
  +       env_test$in_test <- FALSE
  +       env_test$package <- NULL
  +     })
  +     test_path <- "async"
  +     asNamespace("testthat")$test_package_dir(
  +       package = package, test_path = test_path,
  +       filter = NULL, reporter = "check")
  +   }
  +   test()
  + }
  ── 1. Failure: when_any, multiple errors (@test-when-any.R#73)  ────────────────
  conditionMessage\(errors\[\[1\]\]\) does not match "bar".
  Actual value: "foo"
  
  ── 2. Failure: when_any, multiple errors (@test-when-any.R#74)  ────────────────
  conditionMessage\(errors\[\[2\]\]\) does not match "foo".
  Actual value: "bar"
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 661 | SKIPPED: 31 | WARNINGS: 0 | FAILED: 2 ]
  1. Failure: when_any, multiple errors (@test-when-any.R#73) 
  2. Failure: when_any, multiple errors (@test-when-any.R#74) 
  
  Error: testthat unit tests failed
  Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgcache)
  > 
  > test_check("pkgcache")
  ── 1. Error: load_primary_pkgs (@test-metadata-cache.R#191)  ───────────────────
  No metadata available
  Backtrace:
   1. pkgcache:::synchronise(get_private(cmc)$load_primary_pkgs(oneday()))
   2. get_private(cmc)$load_primary_pkgs(oneday())
   3. pkgcache:::cmc__load_primary_pkgs(self, private, max_age)
   4. private$update_replica_rds(alert = FALSE)
   5. pkgcache:::cmc__update_replica_rds(self, private, alert)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 305 | SKIPPED: 28 | WARNINGS: 2 | FAILED: 1 ]
  1. Error: load_primary_pkgs (@test-metadata-cache.R#191) 
  
  Error: testthat unit tests failed
  Execution halted