Skip to content

Commit 753852c

Browse files
committed
updated test
1 parent 9d2ef05 commit 753852c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cns/middlewares/k8sSwiftV2_windows_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ func TestAddDefaultDenyACL(t *testing.T) {
151151
}
152152

153153
// normalizeKVPairs normalizes the JSON values in the KV pairs by unmarshaling them into a map, then marshaling them back to compact JSON to remove any extra space, new lines, etc
154-
func normalizeKVPairs(t *testing.T, kvPairs []policy.Policy) []policy.Policy {
155-
normalized := make([]policy.Policy, len(kvPairs))
154+
func normalizeKVPairs(t *testing.T, policies []policy.Policy) []policy.Policy {
155+
normalized := make([]policy.Policy, len(policies))
156156

157-
for i, kv := range kvPairs {
157+
for i, kv := range policies {
158158
var unmarshaledValue map[string]interface{}
159159
// Unmarshal the Value into a map
160160
err := json.Unmarshal(kv.Data, &unmarshaledValue)

0 commit comments

Comments
 (0)