引入并集成服务平滑关闭
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user