feat: export devserver.Config (#3638)

This commit is contained in:
kesonan
2023-10-17 23:38:21 +08:00
committed by GitHub
parent d84dfe1b20
commit 423597a01c
2 changed files with 21 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/internal/devserver"
)
func TestServiceConf(t *testing.T) {
@@ -14,6 +15,10 @@ func TestServiceConf(t *testing.T) {
Mode: "console",
},
Mode: "dev",
DevServer: devserver.Config{
Port: 6470,
HealthPath: "/healthz",
},
}
c.MustSetUp()
}