mirror of
https://github.com/minio/minio.git
synced 2025-11-23 11:07:50 -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
@@ -20,6 +20,10 @@ import "testing"
|
||||
|
||||
// Tests authorized RPC client.
|
||||
func TestAuthRPCClient(t *testing.T) {
|
||||
// reset globals.
|
||||
// this is to make sure that the tests are not affected by modified globals.
|
||||
resetTestGlobals()
|
||||
|
||||
authCfg := authConfig{
|
||||
accessKey: "123",
|
||||
secretKey: "123",
|
||||
|
||||
Reference in New Issue
Block a user