mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
chore: add more tests for logx/logc (#4603)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user