Skip to content

Commit

Permalink
chore: lint fixes for new lint (#1478)
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
Terry Howe authored Aug 14, 2024
1 parent f66907e commit 7b966eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestMain(m *testing.M) {
builder = &strings.Builder{}
printer = output.NewPrinter(builder, os.Stderr, false)
bogus = ocispec.Descriptor{MediaType: ocispec.MediaTypeImageManifest}
m.Run()
os.Exit(m.Run())
}

func validatePrinted(t *testing.T, expected string) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/internal/option/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestMain(m *testing.M) {
ts.TLS = loadTestingTLSConfig()
ts.StartTLS()
defer ts.Close()
m.Run()
os.Exit(m.Run())
}

func TestRemote_FlagsInit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/internal/output/print_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (mw *mockWriter) Write(p []byte) (n int, err error) {
return len(string(p)), nil
}
mw.errorCount++
return 0, fmt.Errorf("Boom: " + string(p))
return 0, fmt.Errorf("boom %s", string(p))
}

func (mw *mockWriter) String() string {
Expand Down

0 comments on commit 7b966eb

Please sign in to comment.