Skip to content

Commit 7b966eb

Browse files
author
Terry Howe
authored
chore: lint fixes for new lint (oras-project#1478)
Signed-off-by: Terry Howe <[email protected]>
1 parent f66907e commit 7b966eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/oras/internal/display/status/text_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestMain(m *testing.M) {
4040
builder = &strings.Builder{}
4141
printer = output.NewPrinter(builder, os.Stderr, false)
4242
bogus = ocispec.Descriptor{MediaType: ocispec.MediaTypeImageManifest}
43-
m.Run()
43+
os.Exit(m.Run())
4444
}
4545

4646
func validatePrinted(t *testing.T, expected string) {

cmd/oras/internal/option/remote_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestMain(m *testing.M) {
117117
ts.TLS = loadTestingTLSConfig()
118118
ts.StartTLS()
119119
defer ts.Close()
120-
m.Run()
120+
os.Exit(m.Run())
121121
}
122122

123123
func TestRemote_FlagsInit(t *testing.T) {

cmd/oras/internal/output/print_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (mw *mockWriter) Write(p []byte) (n int, err error) {
3434
return len(string(p)), nil
3535
}
3636
mw.errorCount++
37-
return 0, fmt.Errorf("Boom: " + string(p))
37+
return 0, fmt.Errorf("boom %s", string(p))
3838
}
3939

4040
func (mw *mockWriter) String() string {

0 commit comments

Comments
 (0)