Add simple test
This commit is contained in:
parent
71149e36fa
commit
846ff2a616
1 changed files with 7 additions and 0 deletions
|
@ -35,3 +35,10 @@ func TestConfigTune(t *testing.T) {
|
||||||
assert.EqualValues(t, 2*time.Second, c.Runner.FetchInterval)
|
assert.EqualValues(t, 2*time.Second, c.Runner.FetchInterval)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestDefaultSettings(t *testing.T) {
|
||||||
|
config, err := LoadDefault("")
|
||||||
|
assert.NoError(t, err)
|
||||||
|
|
||||||
|
assert.EqualValues(t, config.Log.JobLevel, "info")
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue