Skip to content

Commit

Permalink
Fixing failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjbustamante committed Apr 2, 2024
1 parent 9e2d51b commit 8064cf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
}`)
})
})
Expand Down
3 changes: 1 addition & 2 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8064cf2

Please sign in to comment.