File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,30 @@ location /t {
101101
102102 assert(rc == nil, " rc should be nil" )
103103 assert(err == " field foo does not exist" , " err should contain error" )
104+
105+
106+ -- Provide all options, without errors
107+
108+ assert(require (" resty.redis.connector" ). new ({
109+ connect_timeout = 100 ,
110+ read_timeout = 1000 ,
111+ connection_options = {},
112+ keepalive_timeout = 60000 ,
113+ keepalive_poolsize = 30 ,
114+
115+ host = " 127.0.0.1" ,
116+ port = 6379 ,
117+ path = " " , -- / tmp/ redis. sock
118+ password = " " ,
119+ db = 0 ,
120+
121+ url = " " , -- DSN url
122+
123+ master_name = " mymaster" ,
124+ role = " master" , -- master | slave | any
125+ sentinels = {},
126+ }), " new should return positively" )
127+
104128 }
105129}
106130-- - request
You can’t perform that action at this time.
0 commit comments