summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorben Günther <admin@xenrox.net>2024-10-30 22:11:19 +0100
committerThorben Günther <admin@xenrox.net>2024-11-02 17:49:38 +0100
commit846ff2a616634540c641729182429c93dd6b726e (patch)
tree61c189ae9a6441f1af9c67b616dbf167c83aa35e
parentAdd configurable logging level for jobs (diff)
downloadforgejo-runner-846ff2a616634540c641729182429c93dd6b726e.tar.xz
forgejo-runner-846ff2a616634540c641729182429c93dd6b726e.zip
Add simple test
-rw-r--r--internal/pkg/config/config_test.go7
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")
+}