mirror of
https://github.com/zrepl/zrepl.git
synced 2025-04-10 11:28:40 +02:00
config: fixup 1f072936c5
: broken test
This commit is contained in:
parent
f535b2327f
commit
8cfeeee23a
@ -57,7 +57,7 @@ global:
|
|||||||
func TestDefaultLoggingOutlet(t *testing.T) {
|
func TestDefaultLoggingOutlet(t *testing.T) {
|
||||||
conf := testValidGlobalSection(t, "")
|
conf := testValidGlobalSection(t, "")
|
||||||
assert.Equal(t, 1, len(*conf.Global.Logging))
|
assert.Equal(t, 1, len(*conf.Global.Logging))
|
||||||
o := (*conf.Global.Logging)[0].Ret.(StdoutLoggingOutlet)
|
o := (*conf.Global.Logging)[0].Ret.(*StdoutLoggingOutlet)
|
||||||
assert.Equal(t, "warn", o.Level)
|
assert.Equal(t, "warn", o.Level)
|
||||||
assert.Equal(t, "human", o.Format)
|
assert.Equal(t, "human", o.Format)
|
||||||
}
|
}
|
||||||
@ -77,6 +77,6 @@ func TestLoggingOutletEnumList_SetDefaults(t *testing.T) {
|
|||||||
var i yaml.Defaulter = e
|
var i yaml.Defaulter = e
|
||||||
require.NotPanics(t, func() {
|
require.NotPanics(t, func() {
|
||||||
i.SetDefault()
|
i.SetDefault()
|
||||||
assert.Equal(t, "warn", (*e)[0].Ret.(StdoutLoggingOutlet).Level)
|
assert.Equal(t, "warn", (*e)[0].Ret.(*StdoutLoggingOutlet).Level)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user