引入并集成服务平滑关闭

This commit is contained in:
2025-05-29 10:45:06 +08:00
parent 558587ec68
commit 1da666d6fc
4 changed files with 34 additions and 99 deletions

View File

@ -8,10 +8,12 @@
package router
import (
"github.com/gin-gonic/gin"
"testing"
)
func TestNewServer(t *testing.T) {
s := NewServer(9087)
s.Router().GET("/ping", func(c *gin.Context) {})
s.Start()
}