Skip to content

A platform for community discussion. Free, open, simple.

DEV: Avoid installing minio binaries in CI (#32432)

Alan Guo Xiang Tand059938dded5
diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rb
index f1f23fb139b..b73c48e3106 100644
--- a/spec/support/system_helpers.rb
+++ b/spec/support/system_helpers.rb
@@ -198,6 +198,8 @@ module SystemHelpers
SiteSetting.enable_direct_s3_uploads = enable_direct_s3_uploads
SiteSetting.secure_uploads = enable_secure_uploads
+ # On CI, the minio binary is preinstalled in the docker image so there is no need for us to check for a new binary
+ MinioRunner.config.cache_time = 2.day.to_i if ENV["CI"]
MinioRunner.start
end