log: fix tests

pull/5959/head
ᴜɴᴋɴᴡᴏɴ 2020-03-02 01:14:26 +08:00
parent 7382c23a17
commit fe7b094b9e
No known key found for this signature in database
GPG Key ID: B43718D76E30A238
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ MODE = console
t.Fatal(err)
}
got, hasConsole, err := initLogConf(f)
got, hasConsole, err := initLogConf(f, false)
assert.NotNil(t, err)
assert.Equal(t, `missing configuration section [log.console] for "console" logger`, err.Error())
assert.False(t, hasConsole)
@ -41,7 +41,7 @@ MODE = file
t.Fatal(err)
}
got, hasConsole, err := initLogConf(f)
got, hasConsole, err := initLogConf(f, false)
if err != nil {
t.Fatal(err)
}
@ -81,7 +81,7 @@ USERNAME = yoyo
t.Fatal(err)
}
got, hasConsole, err := initLogConf(f)
got, hasConsole, err := initLogConf(f, false)
if err != nil {
t.Fatal(err)
}