chore: add more tests for logx/logc (#4603)

This commit is contained in:
Kevin Wan
2025-01-26 00:07:19 +08:00
committed by GitHub
parent 64e8c94198
commit a32f6d7642
8 changed files with 264 additions and 71 deletions

View File

@@ -27,7 +27,7 @@ func TestServer(t *testing.T) {
Mode: "console",
},
},
ListenOn: "localhost:8080",
ListenOn: "localhost:0",
Etcd: discov.EtcdConf{},
Auth: false,
Redis: redis.RedisKeyConf{},
@@ -64,7 +64,7 @@ func TestServerError(t *testing.T) {
Mode: "console",
},
},
ListenOn: "localhost:8080",
ListenOn: "localhost:0",
Etcd: discov.EtcdConf{
Hosts: []string{"localhost"},
},
@@ -91,7 +91,7 @@ func TestServer_HasEtcd(t *testing.T) {
Mode: "console",
},
},
ListenOn: "localhost:8080",
ListenOn: "localhost:0",
Etcd: discov.EtcdConf{
Hosts: []string{"notexist"},
Key: "any",