Add simple test

pull/299/head
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
1 changed files with 7 additions and 0 deletions

View File

@ -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")
}