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.
config
Non-existent file
1 parent 7ce6022 commit 2ee29d0Copy full SHA for 2ee29d0
config/config_test.go
@@ -301,11 +301,8 @@ func TestFromYAMLFile(t *testing.T) {
301
})
302
303
t.Run("Non-existent file", func(t *testing.T) {
304
- var pathError *fs.PathError
305
-
306
err := FromYAMLFile("nonexistent.yaml", &validateValid{})
307
- require.ErrorAs(t, err, &pathError)
308
- require.ErrorIs(t, pathError.Err, fs.ErrNotExist)
+ require.ErrorIs(t, err, fs.ErrNotExist)
309
310
311
t.Run("Permission denied", func(t *testing.T) {
0 commit comments