diff options
author | Julien Dessaux | 2021-04-09 23:49:38 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-09 23:49:38 +0200 |
commit | bcdfefce0f1399fa4561e3272ae7e21ea5163ece (patch) | |
tree | c2bb7da07a58ef708bbd216245de78138d631be6 | |
parent | Fixed wrong implementation of yaml default values and of the corresponding tests (diff) | |
download | trains-bcdfefce0f1399fa4561e3272ae7e21ea5163ece.tar.gz trains-bcdfefce0f1399fa4561e3272ae7e21ea5163ece.tar.bz2 trains-bcdfefce0f1399fa4561e3272ae7e21ea5163ece.zip |
Made config tests more specific
-rw-r--r-- | pkg/config/config_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |