From 8079db39d1958a7d73b8e693bfcacc418c4fccd0 Mon Sep 17 00:00:00 2001 From: Yasss Date: Thu, 2 May 2019 17:52:38 +0200 Subject: [PATCH] Fix test --- backend/file/file_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }) }