mirror of https://code.forgejo.org/forgejo/runner
Add simple test
parent
71149e36fa
commit
846ff2a616
|
@ -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 New Issue