Add simple test

This commit is contained in:
Thorben Günther 2024-10-30 22:11:19 +01:00
parent 71149e36fa
commit 846ff2a616
No known key found for this signature in database
GPG key ID: 415CD778D8C5AFED

View file

@ -35,3 +35,10 @@ func TestConfigTune(t *testing.T) {
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")
}