mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -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
@@ -945,7 +945,7 @@ func TestBucketPolicyConditionMatch(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, tc := range testCases {
|
||||
t.Run(fmt.Sprintf("Test case %d: Failed.", i+1), func(t *testing.T) {
|
||||
t.Run(fmt.Sprintf("Case %d", i+1), func(t *testing.T) {
|
||||
// call the function under test and assert the result with the expected result.
|
||||
doesMatch := bucketPolicyConditionMatch(tc.condition, tc.statementCondition)
|
||||
if tc.expectedMatch != doesMatch {
|
||||
|
||||
Reference in New Issue
Block a user