We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3522b3 commit 602db2dCopy full SHA for 602db2d
cmd/utils/output_test.go
@@ -1,7 +1,7 @@
1
package utils
2
3
import (
4
- "fmt"
+ "errors"
5
"io"
6
"os"
7
"testing"
@@ -40,7 +40,7 @@ func TestHandleCommandOutput_Success(t *testing.T) {
40
41
func TestHandleCommandOutput_Error(t *testing.T) {
42
fn := func() (string, error) {
43
- return "something failed", fmt.Errorf("error")
+ return "something failed", errors.New("error")
44
}
45
46
output := captureOutput(&os.Stderr, HandleCommandOutput(fn))
0 commit comments