Skip to content

Commit 602db2d

Browse files
updating tests
1 parent e3522b3 commit 602db2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/utils/output_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package utils
22

33
import (
4-
"fmt"
4+
"errors"
55
"io"
66
"os"
77
"testing"
@@ -40,7 +40,7 @@ func TestHandleCommandOutput_Success(t *testing.T) {
4040

4141
func TestHandleCommandOutput_Error(t *testing.T) {
4242
fn := func() (string, error) {
43-
return "something failed", fmt.Errorf("error")
43+
return "something failed", errors.New("error")
4444
}
4545

4646
output := captureOutput(&os.Stderr, HandleCommandOutput(fn))

0 commit comments

Comments
 (0)