mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 13:02:14 +08:00
Merge e234c86fc5d6b30e914c323a1de23b410d8118c5 into e899d8a99eac4cfeadbeef09017b304d2b918b85
This commit is contained in:
commit
d9e36d8a2b
10
gin_test.go
10
gin_test.go
@ -148,3 +148,13 @@ func TestNoMethodWithGlobalHandlers(t *testing.T) {
|
||||
assert.Equal(t, router.allNoMethod[1], middleware1)
|
||||
assert.Equal(t, router.allNoMethod[2], middleware0)
|
||||
}
|
||||
|
||||
func TestRunTLS(t *testing.T) {
|
||||
certFile := ""
|
||||
keyFile := ""
|
||||
addr := ":5443"
|
||||
router := New()
|
||||
|
||||
err := router.RunTLS(addr, certFile, keyFile)
|
||||
assert.NotNil(t, err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user