unit test fix
This commit is contained in:
parent
076f11a555
commit
32083ee51f
@ -32,8 +32,8 @@ func (suite *LoggerUnitSuite) TestAddLoggingFlags() {
|
|||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
assert.True(t, logger.DebugAPIFV, logger.DebugAPIFN)
|
assert.True(t, logger.DebugAPIFV, logger.DebugAPIFN)
|
||||||
assert.True(t, logger.ReadableLogsFV, logger.ReadableLogsFN)
|
assert.True(t, logger.ReadableLogsFV, logger.ReadableLogsFN)
|
||||||
assert.Equal(t, logger.LLError, logger.LogLevelFV, logger.LogLevelFN)
|
assert.Equal(t, string(logger.LLError), logger.LogLevelFV, logger.LogLevelFN)
|
||||||
assert.Equal(t, logger.LLError, logger.LogFormatFV, logger.LogFormatFN)
|
assert.Equal(t, string(logger.LFText), logger.LogFormatFV, logger.LogFormatFN)
|
||||||
assert.True(t, logger.MaskSensitiveDataFV, logger.MaskSensitiveDataFN)
|
assert.True(t, logger.MaskSensitiveDataFV, logger.MaskSensitiveDataFN)
|
||||||
// empty assertion here, instead of matching "log-file", because the LogFile
|
// empty assertion here, instead of matching "log-file", because the LogFile
|
||||||
// var isn't updated by running the command (this is expected and correct),
|
// var isn't updated by running the command (this is expected and correct),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user