We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97fb39a commit 1c52ce5Copy full SHA for 1c52ce5
config/config_test.go
@@ -0,0 +1,13 @@
1
+package config
2
+
3
+import "testing"
4
5
+func TestLoadDefaultConfig(t *testing.T) {
6
+ cfg := DefaultConfig()
7
+ if cfg.HTTPPort == 0 {
8
+ t.Fatalf("HTTPPort should be set in default config")
9
+ }
10
+ if cfg.DataDir == "" {
11
+ t.Fatalf("DataDir should not be empty in default config")
12
13
+}
0 commit comments