distroregistry/test: do not depend on the order in the List test

order of distributions doesn't matter.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-03-11 13:26:18 +01:00 committed by Ondřej Budai
parent 1b63a69245
commit e4295dc49c

View file

@ -25,5 +25,5 @@ func TestRegistry_List(t *testing.T) {
distros, err := distroregistry.New(fedora32.New(), fedora33.New(), rhel8.New(), rhel84.New(), rhel84.NewCentos())
require.NoError(t, err)
require.Equalf(t, expected, distros.List(), "unexpected list of distros")
require.ElementsMatch(t, expected, distros.List(), "unexpected list of distros")
}