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 dbd760f commit 4e144fbCopy full SHA for 4e144fb
sh/cmd_test.go
@@ -3,7 +3,6 @@ package sh
3
import (
4
"bytes"
5
"errors"
6
- "io/fs"
7
"os"
8
"testing"
9
)
@@ -78,7 +77,7 @@ func TestWrappedError(t *testing.T) {
78
77
if err == nil {
79
t.Fatalf("Expected to fail running %s", os.Args[0]+"-doesnotexist")
80
}
81
- if !errors.Is(err, fs.ErrNotExist) {
+ if !errors.Is(err, os.ErrNotExist) {
82
t.Fatalf("Expected error to be like ErrNotExist, got %#v", err)
83
84
0 commit comments