Fix test error
This commit is contained in:
parent
c8d47d5b4a
commit
aee734769d
|
|
@ -80,6 +80,9 @@ func TestDisablingWrapHandler(t *testing.T) {
|
|||
router := gin.New()
|
||||
disablingKey := "SWAGGER_DISABLE"
|
||||
|
||||
doc := &mockedSwag{}
|
||||
swag.Register(swag.Name, doc)
|
||||
|
||||
router.GET("/simple/*any", DisablingWrapHandler(swaggerFiles.Handler, disablingKey))
|
||||
|
||||
assert.Equal(t, http.StatusOK, performRequest(http.MethodGet, "/simple/index.html", router).Code)
|
||||
|
|
|
|||
Loading…
Reference in New Issue