Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imsodin committed Dec 21, 2022
1 parent a63a95a commit 88743c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ignore/ignore_test.go
Expand Up @@ -996,8 +996,8 @@ func TestIssue4901(t *testing.T) {
if err == nil {
t.Fatal("expected an error")
}
if fs.IsNotExist(err) {
t.Fatal("unexpected error type")
if err == fs.ErrNotExist {
t.Fatalf("unexpected error type: %T", err)
}
if !IsParseError(err) {
t.Fatal("failure to load included file should be a parse error")
Expand Down

0 comments on commit 88743c5

Please sign in to comment.