fixed sonarqube issues

This commit is contained in:
2025-12-17 10:01:58 +08:00
parent e6b3e3b3ae
commit c4c03163ea
4 changed files with 85 additions and 78 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ func TestRateLimiterMiddlewareRedisNotAvailable(t *testing.T) {
}
}
func TestRateLimiterMiddleware_AllowsRequest(t *testing.T) {
func TestRateLimiterMiddlewareAllowsRequest(t *testing.T) {
db, mock := redismock.NewClientMock()
originalRedis := redisclient.RDB
redisclient.RDB = db