diff --git a/index_test.go b/index_test.go index ab311be1..3b7c727d 100644 --- a/index_test.go +++ b/index_test.go @@ -3627,9 +3627,9 @@ func testIndex(t *testing.T, when spec.G, it spec.S) { mfest, err := idx.Inspect() h.AssertNil(t, err) h.AssertEq(t, mfest, `{ -"schemaVersion": 2, -"mediaType": "application/vnd.oci.image.index.v1+json", -"manifests": [] + "schemaVersion": 2, + "mediaType": "application/vnd.oci.image.index.v1+json", + "manifests": [] }`) }) }) diff --git a/util_test.go b/util_test.go index d5b108ff..44457fcf 100644 --- a/util_test.go +++ b/util_test.go @@ -178,8 +178,7 @@ func testUtils(t *testing.T, when spec.G, it spec.S) { for _, item := range items { stringSet.Add(item) } - - h.AssertEq(t, stringSet.StringSlice(), items) + h.AssertContains(t, stringSet.StringSlice(), items...) }) it("should not support duplicates", func() { stringSet := imgutil.NewStringSet()