mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
disable connectDisks loop under testing (#14920)
avoids races during tests, keeps tests predictable
This commit is contained in:
@@ -73,6 +73,9 @@ import (
|
||||
func TestMain(m *testing.M) {
|
||||
flag.Parse()
|
||||
|
||||
// set to 'true' when testing is invoked
|
||||
globalIsTesting = true
|
||||
|
||||
globalActiveCred = auth.Credentials{
|
||||
AccessKey: auth.DefaultAccessKey,
|
||||
SecretKey: auth.DefaultSecretKey,
|
||||
|
||||
Reference in New Issue
Block a user