pkg/setting: Check errors (#19838)

Check errors in pkg/setting.
This commit is contained in:
Arve Knudsen
2019-10-22 16:17:49 +02:00
committed by GitHub
parent bb50fc5965
commit 8ba5509614
2 changed files with 30 additions and 15 deletions
+2 -1
View File
@@ -31,10 +31,11 @@ func TestSessionSettings(t *testing.T) {
stub := &testLogger{}
cfg.Logger = stub
cfg.Load(&CommandLineArgs{
err := cfg.Load(&CommandLineArgs{
HomePath: homePath,
Config: filepath.Join(homePath, "pkg/setting/testdata/session.ini"),
})
So(err, ShouldBeNil)
So(stub.warnCalled, ShouldEqual, true)
So(len(stub.warnMessage), ShouldBeGreaterThan, 0)