Skip to content

Commit 4e144fb

Browse files
committed
Use older package for ErrNotExist
Although it comes from io/fs today, its original source was os.
1 parent dbd760f commit 4e144fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sh/cmd_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package sh
33
import (
44
"bytes"
55
"errors"
6-
"io/fs"
76
"os"
87
"testing"
98
)
@@ -78,7 +77,7 @@ func TestWrappedError(t *testing.T) {
7877
if err == nil {
7978
t.Fatalf("Expected to fail running %s", os.Args[0]+"-doesnotexist")
8079
}
81-
if !errors.Is(err, fs.ErrNotExist) {
80+
if !errors.Is(err, os.ErrNotExist) {
8281
t.Fatalf("Expected error to be like ErrNotExist, got %#v", err)
8382
}
8483
}

0 commit comments

Comments
 (0)