From 09b0f7bb46effff0b586733b734094d0ea8df6a3 Mon Sep 17 00:00:00 2001 From: Anthony Emengo Date: Fri, 21 Jan 2022 09:44:10 -0500 Subject: [PATCH] Remove Focus on tests - They shouldn't be here Signed-off-by: Anthony Emengo --- internal/commands/build_test.go | 2 +- internal/inspectimage/writer/structured_bom_format_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/commands/build_test.go b/internal/commands/build_test.go index 65ef7ee69..b22bf10c0 100644 --- a/internal/commands/build_test.go +++ b/internal/commands/build_test.go @@ -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(). diff --git a/internal/inspectimage/writer/structured_bom_format_test.go b/internal/inspectimage/writer/structured_bom_format_test.go index 12837e4ca..d7e61dcd4 100644 --- a/internal/inspectimage/writer/structured_bom_format_test.go +++ b/internal/inspectimage/writer/structured_bom_format_test.go @@ -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