@@ -49,7 +49,7 @@ describe("connection tests", function () {
4949 } ) ;
5050
5151 it ( "emit an error after max retry timeout and do not try to reconnect afterwards" , function ( done ) {
52- var connect_timeout = 500 ; // in ms
52+ var connect_timeout = 600 ; // in ms
5353 client = redis . createClient ( {
5454 parser : parser ,
5555 connect_timeout : connect_timeout
@@ -187,21 +187,23 @@ describe("connection tests", function () {
187187 } ) ;
188188 } ) ;
189189
190- it ( "connect with path provided in the options object" , function ( done ) {
191- client = redis . createClient ( {
192- path : '/tmp/redis.sock' ,
193- parser : parser ,
194- connect_timeout : 1000
195- } ) ;
190+ if ( process . platform !== 'win32' ) {
191+ it ( "connect with path provided in the options object" , function ( done ) {
192+ client = redis . createClient ( {
193+ path : '/tmp/redis.sock' ,
194+ parser : parser ,
195+ connect_timeout : 1000
196+ } ) ;
196197
197- var end = helper . callFuncAfter ( done , 2 ) ;
198+ var end = helper . callFuncAfter ( done , 2 ) ;
198199
199- client . once ( 'ready' , function ( ) {
200- end ( ) ;
201- } ) ;
200+ client . once ( 'ready' , function ( ) {
201+ end ( ) ;
202+ } ) ;
202203
203- client . set ( 'foo' , 'bar' , end ) ;
204- } ) ;
204+ client . set ( 'foo' , 'bar' , end ) ;
205+ } ) ;
206+ }
205207
206208 it ( "connects correctly with args" , function ( done ) {
207209 client = redis . createClient . apply ( redis . createClient , args ) ;
0 commit comments