@@ -49,7 +49,7 @@ describe("connection tests", function () {
49
49
} ) ;
50
50
51
51
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
53
53
client = redis . createClient ( {
54
54
parser : parser ,
55
55
connect_timeout : connect_timeout
@@ -187,21 +187,23 @@ describe("connection tests", function () {
187
187
} ) ;
188
188
} ) ;
189
189
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
+ } ) ;
196
197
197
- var end = helper . callFuncAfter ( done , 2 ) ;
198
+ var end = helper . callFuncAfter ( done , 2 ) ;
198
199
199
- client . once ( 'ready' , function ( ) {
200
- end ( ) ;
201
- } ) ;
200
+ client . once ( 'ready' , function ( ) {
201
+ end ( ) ;
202
+ } ) ;
202
203
203
- client . set ( 'foo' , 'bar' , end ) ;
204
- } ) ;
204
+ client . set ( 'foo' , 'bar' , end ) ;
205
+ } ) ;
206
+ }
205
207
206
208
it ( "connects correctly with args" , function ( done ) {
207
209
client = redis . createClient . apply ( redis . createClient , args ) ;
0 commit comments