aboutsummaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-09 23:49:38 +0200
committerJulien Dessaux2021-04-09 23:49:38 +0200
commitbcdfefce0f1399fa4561e3272ae7e21ea5163ece (patch)
treec2bb7da07a58ef708bbd216245de78138d631be6 /pkg/config
parentFixed wrong implementation of yaml default values and of the corresponding tests (diff)
downloadtrains-bcdfefce0f1399fa4561e3272ae7e21ea5163ece.tar.gz
trains-bcdfefce0f1399fa4561e3272ae7e21ea5163ece.tar.bz2
trains-bcdfefce0f1399fa4561e3272ae7e21ea5163ece.zip
Made config tests more specific
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config_test.go1
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)
}