Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Focus on tests #1361

Merged
merged 1 commit into from
Jan 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/commands/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ builder = "my-builder"
})
})

when.Focus("previous-image flag is provided", func() {
when("previous-image flag is provided", func() {
when("image is invalid", func() {
it("error must be thrown", func() {
mockClient.EXPECT().
Expand Down
4 changes: 2 additions & 2 deletions internal/inspectimage/writer/structured_bom_format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ func testStructuredBOMFormat(t *testing.T, when spec.G, it spec.S) {
}

err := structuredBOMWriter.Print(logger, generalInfo, nil, nil, nil, nil)
assert.ErrorWithMessage(err, fmt.Sprintf("unable to find image '%s' locally or remotely", "missing-image"))
assert.ErrorWithMessage(err, fmt.Sprintf("unable to find image '%s' locally or remotely", "some-image-name"))
})
})
when("fetching local and remote info errors", func() {
it.Focus("returns an error", func() {
it("returns an error", func() {
structuredBOMWriter := writer.StructuredBOMFormat{
MarshalFunc: func(i interface{}) ([]byte, error) {
return []byte("cool"), nil
Expand Down