From 3e6dff17eb60d1476be6ea2f141a3d818951f07e Mon Sep 17 00:00:00 2001 From: rot1024 Date: Wed, 6 Apr 2022 14:45:39 +0900 Subject: [PATCH] fix: property.SchemaListMap.List test fails --- pkg/property/schema_list_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/property/schema_list_test.go b/pkg/property/schema_list_test.go index 0a485e5a..cb22dc67 100644 --- a/pkg/property/schema_list_test.go +++ b/pkg/property/schema_list_test.go @@ -40,6 +40,9 @@ func TestSchemaList_MapToIDs(t *testing.T) { func TestSchemaMap_List(t *testing.T) { p1 := &Schema{id: MustSchemaID("foo~1.0.0/a")} p2 := &Schema{id: MustSchemaID("bar~1.0.0/a")} - assert.Equal(t, SchemaList{p1, p2}, SchemaMap{p1.ID(): p1, p2.ID(): p2}.List()) + list := SchemaMap{p1.ID(): p1, p2.ID(): p2}.List() + assert.Len(t, list, 2) + assert.Contains(t, list, p1) + assert.Contains(t, list, p2) assert.Nil(t, SchemaMap(nil).List()) }