diff options
author | Thorben Günther <admin@xenrox.net> | 2024-10-30 22:11:19 +0100 |
---|---|---|
committer | Thorben Günther <admin@xenrox.net> | 2024-11-02 17:49:38 +0100 |
commit | 846ff2a616634540c641729182429c93dd6b726e (patch) | |
tree | 61c189ae9a6441f1af9c67b616dbf167c83aa35e | |
parent | Add configurable logging level for jobs (diff) | |
download | forgejo-runner-846ff2a616634540c641729182429c93dd6b726e.tar.xz forgejo-runner-846ff2a616634540c641729182429c93dd6b726e.zip |
Add simple test
-rw-r--r-- | internal/pkg/config/config_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/pkg/config/config_test.go b/internal/pkg/config/config_test.go index d2ddf2f..af3ebf7 100644 --- a/internal/pkg/config/config_test.go +++ b/internal/pkg/config/config_test.go @@ -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") +} |