Skip to content

Commit

Permalink
Fixing unit test after cleaning a little bit
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Bustamante <[email protected]>
  • Loading branch information
jjbustamante committed Apr 10, 2024
1 parent 897ad17 commit 1d0faab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cnb_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func (i *CNBImageCore) OSFeatures() ([]string, error) {
}

func (i *CNBImageCore) Features() ([]string, error) {
if len(i.features) != 0 {
return i.features, nil
}

mfest, err := getManifest(i.Image)
if err != nil {
return nil, err
Expand All @@ -167,6 +171,10 @@ func (i *CNBImageCore) Features() ([]string, error) {
}

func (i *CNBImageCore) URLs() ([]string, error) {
if len(i.urls) != 0 {
return i.urls, nil
}

mfest, err := getManifest(i.Image)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion layout/layout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ func testImage(t *testing.T, when spec.G, it spec.S) {
}
})

it("Platform values are saved on disk in OCI layout format", func() {
it.Focus("Platform values are saved on disk in OCI layout format", func() {
var (
os = "linux"
arch = "amd64"
Expand Down

0 comments on commit 1d0faab

Please sign in to comment.