diff --git a/backend/file/file_test.go b/backend/file/file_test.go index e26caf2..bbeead1 100644 --- a/backend/file/file_test.go +++ b/backend/file/file_test.go @@ -109,6 +109,8 @@ timeout = 10 b := file.NewBackend("some path", true) err := b.Unmarshal(context.Background(), &c) - require.NoError(t, err) + require.Error(t, err) + _, ok := err.(file.ErrOpenOptionalFile) + require.True(t, ok) }) }