diff --git a/config/testing/redis.yaml b/config/testing/redis.yaml index 52d5b61..0ed4bf0 100644 --- a/config/testing/redis.yaml +++ b/config/testing/redis.yaml @@ -1,9 +1,12 @@ timeout: 10s # 连接超时 read_timeout: 2s # 读超时 write_timeout: 2s # 写超时 -host: 10.10.103.131 # ip地址 -port: 6379 # 端口 -password: Worktask@Redis2023 -db: 0 #db - +write: + host: 10.10.103.131 # ip地址 + port: 6379 # 端口 + password: Worktask@Redis2023 + db: 0 #db + timeout: 10s # 连接超时 + read_timeout: 2s # 读超时 + write_timeout: 2s # 写超时 diff --git a/framework/middleware/gin-swagger/swagger_test.go b/framework/middleware/gin-swagger/swagger_test.go index fd7000d..78edb72 100644 --- a/framework/middleware/gin-swagger/swagger_test.go +++ b/framework/middleware/gin-swagger/swagger_test.go @@ -1,18 +1,17 @@ package ginSwagger import ( + "github.com/Superdanda/hade/framework/gin" + "github.com/Superdanda/hade/framework/middleware/gin-swagger/swaggerFiles" "io/ioutil" "net/http" "net/http/httptest" "os" "testing" - "github.com/gin-contrib/gzip" "github.com/swaggo/swag" - "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" - "github.com/swaggo/gin-swagger/swaggerFiles" ) type mockedSwag struct{} @@ -119,7 +118,7 @@ func TestWithGzipMiddleware(t *testing.T) { gin.SetMode(gin.TestMode) router := gin.New() - router.Use(gzip.Gzip(gzip.BestSpeed)) + //router.Use(gzip.Gzip(gzip.BestSpeed)) router.GET("/*any", WrapHandler(swaggerFiles.Handler)) diff --git a/hade.exe b/hade.exe index 3db815c..b095539 100644 Binary files a/hade.exe and b/hade.exe differ