Skip to content

Commit

Permalink
address linter and failure comments
Browse files Browse the repository at this point in the history
  • Loading branch information
s-urbaniak committed Feb 20, 2025
1 parent 68058ce commit 7747de6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/helper/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ func RunCommand(t *testing.T, name string, args ...string) io.Reader {
cmd := exec.Command(name, args...)
cmd.Stdout = &result
cmd.Stderr = &result
require.NoError(t, cmd.Run())
err := cmd.Run()
if err != nil {
t.Log(result.String())
}
require.NoError(t, err)
return &result
}
3 changes: 2 additions & 1 deletion test/helper/decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package decoder

import (
"bufio"
"errors"
"io"
"testing"

Expand Down Expand Up @@ -29,7 +30,7 @@ func DecodeAll(t *testing.T, from io.Reader) []runtime.Object {
var result []runtime.Object
for {
buf, err := reader.Read()
if err == io.EOF {
if errors.Is(err, io.EOF) {
break
}
require.NoError(t, err)
Expand Down

0 comments on commit 7747de6

Please sign in to comment.