Skip to content

Commit

Permalink
Fix minio install path
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Ross committed Nov 14, 2023
1 parent 359b1f5 commit b85959b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Sys.setenv("RELIC_TEST_S3"="true")
Sys.setenv("RELIC_TEST_S3"="true")

withr::local_envvar(
"R_USER_CACHE_DIR" = tempdir())
Expand All @@ -8,10 +8,10 @@ if(nzchar(Sys.getenv("RELIC_TEST_S3"))) {
s3_dir <- file_temp("s3_cache")
dir_create(s3_dir)

mc_dir <- tools::R_user_dir("relic-test", "data")
mc_dir <- file.path(find.package("minioclient"), "mc_bin")
dir_create(mc_dir)
# Set minioclient directory to package directory so it is cached with packages
withr::local_options(list("minioclient.dir"=file.path(find.package("minioclient"), "mc_bin")))
withr::local_options(list("minioclient.dir" = mc_dir))

minioclient::install_mc()
minioclient::install_minio_server()
Expand Down

0 comments on commit b85959b

Please sign in to comment.