@@ -242,7 +242,7 @@ location /t {
242242 local rc = require (" resty.redis.connector" )
243243
244244 local params = {
245- url
= " redis://[email protected] :$ TEST_NGINX_REDIS_PORT /4" 245+ url
= " redis://[email protected] :$ TEST_NGINX_REDIS_PORT /4" 246246 }
247247
248248 local ok , err = rc. parse_dsn(params)
@@ -253,11 +253,11 @@ location /t {
253253 assert(tonumber(params. port) == $ TEST_NGINX_REDIS_PORT ,
254254 " port should be $ TEST_NGINX_REDIS_PORT" )
255255 assert(tonumber(params. db) == 4 , " db should be 4" )
256- assert(params. password == " foo" , " password should be foo" )
257-
256+ assert(params. password == " foo" , " password should be foo" )
257+
258258
259259 local params = {
260- url = " sentinel://foo@ foomaster :s/2"
260+ url = " sentinel://foo@ foomaster :s/2"
261261 }
262262
263263 local ok , err = rc. parse_dsn(params)
@@ -266,13 +266,13 @@ location /t {
266266
267267 assert(params. master_name == " foomaster" , " master_name should be foomaster" )
268268 assert(params. role == " slave" , " role should be slave" )
269- assert(tonumber(params. db) == 2 , " db should be 2" )
269+ assert(tonumber(params. db) == 2 , " db should be 2" )
270270
271271
272272 local params = {
273273 url = " sentinels:/wrongformat" ,
274274 }
275-
275+
276276 local ok , err = rc. parse_dsn(params)
277277 assert(not ok and err == " could not parse DSN: nil" ,
278278 " url should fail to parse" )
0 commit comments