mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Test Function to reset globals. (#3538)
- Adding reset functions for important global variables. - Using them in tests.
This commit is contained in:
committed by
Harshavardhana
parent
464f9d34d6
commit
2f4a7483ea
@@ -22,6 +22,10 @@ import (
|
||||
)
|
||||
|
||||
func testAdminCmd(cmd cmdType, t *testing.T) {
|
||||
// reset globals.
|
||||
// this is to make sure that the tests are not affected by modified globals.
|
||||
resetTestGlobals()
|
||||
|
||||
rootPath, err := newTestConfig("us-east-1")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to create test config - %v", err)
|
||||
|
||||
Reference in New Issue
Block a user