From bcdfefce0f1399fa4561e3272ae7e21ea5163ece Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 9 Apr 2021 23:49:38 +0200 Subject: Made config tests more specific --- pkg/config/config_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/config') diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index af18fc1..02f2840 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -57,6 +57,7 @@ func TestLoadFile(t *testing.T) { if tc.expectedError != nil { require.Error(t, err) assert.Equalf(t, reflect.TypeOf(err), reflect.TypeOf(tc.expectedError), "Invalid error type. Got %s but expected %s", reflect.TypeOf(err), reflect.TypeOf(tc.expectedError)) + require.Nil(t, valid) } else { require.NoError(t, err) } -- cgit v1.2.3