Skip to content

Commit 5bf78bf

Browse files
committed
Use Errorf instead
1 parent c846de6 commit 5bf78bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/command/command_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,7 @@ func testStdinPipe(t *testing.T, src io.Reader) func() {
659659
defer w.Close()
660660
_, err := io.Copy(w, src)
661661
if err != nil {
662-
t.Logf("error when copying data from testStdinPipe reader argument to stdin: %s", err)
663-
t.Fail()
662+
t.Errorf("error when copying data from testStdinPipe reader argument to stdin: %s", err)
664663
}
665664
}()
666665

0 commit comments

Comments
 (0)