Make concierge_api_discovery_test.go less sensitive to order in a list

Signed-off-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
Andrew Keesler 2020-10-07 11:42:30 -07:00 committed by Ryan Richard
parent f48a4e445e
commit 154de991e4

View File

@ -139,7 +139,7 @@ func TestGetAPIResourceList(t *testing.T) {
for i := range actualResourceList.APIResources { for i := range actualResourceList.APIResources {
actualResourceList.APIResources[i].StorageVersionHash = "" actualResourceList.APIResources[i].StorageVersionHash = ""
} }
require.EqualValues(t, expectedResources, actualResourceList.APIResources, "unexpected API resources") require.ElementsMatch(t, expectedResources, actualResourceList.APIResources, "unexpected API resources")
} }
}) })
} }