Skip to content

Commit 34ee01b

Browse files
committed
sort expected values
1 parent e11864a commit 34ee01b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

npm/pkg/dataplane/ipsets/ipsetmanager_windows_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,12 @@ func verifyHNSCache(t *testing.T, expected map[string]hcn.SetPolicySetting, hns
387387
copyOfCachedObj := *cacheObj
388388
copyOfCachedObj.Values = strings.Join(members, ",")
389389

390-
require.Equal(t, setObj, copyOfCachedObj, setName+" mismatch in cache")
390+
expectedMembers := strings.Split(setObj.Values, ",")
391+
sort.Strings(expectedMembers)
392+
copyOfExpectedObj := setObj
393+
copyOfExpectedObj.Values = strings.Join(expectedMembers, ",")
394+
395+
require.Equal(t, copyOfExpectedObj, copyOfCachedObj, setName+" mismatch in cache")
391396
}
392397
}
393398

0 commit comments

Comments
 (0)