@@ -739,7 +739,7 @@ tests.WATCH_TRANSACTION = function () {
739739
740740
741741tests . detect_buffers = function ( ) {
742- var name = "detect_buffers" , detect_client = redis . createClient ( { detect_buffers : true , parser : parser } ) ;
742+ var name = "detect_buffers" , detect_client = redis . createClient ( PORT , HOST , { detect_buffers : true , parser : parser } ) ;
743743
744744 detect_client . on ( "ready" , function ( ) {
745745 // single Buffer or String
@@ -804,7 +804,7 @@ tests.detect_buffers = function () {
804804} ;
805805
806806tests . detect_buffers_multi = function ( ) {
807- var name = "detect_buffers_multi" , detect_client = redis . createClient ( { detect_buffers : true } ) ;
807+ var name = "detect_buffers_multi" , detect_client = redis . createClient ( PORT , HOST , { detect_buffers : true } ) ;
808808
809809 detect_client . on ( "ready" , function ( ) {
810810 // single Buffer or String
@@ -895,9 +895,9 @@ tests.detect_buffers_multi = function () {
895895tests . socket_nodelay = function ( ) {
896896 var name = "socket_nodelay" , c1 , c2 , c3 , ready_count = 0 , quit_count = 0 ;
897897
898- c1 = redis . createClient ( { socket_nodelay : true , parser : parser } ) ;
899- c2 = redis . createClient ( { socket_nodelay : false , parser : parser } ) ;
900- c3 = redis . createClient ( { parser : parser } ) ;
898+ c1 = redis . createClient ( PORT , HOST , { socket_nodelay : true , parser : parser } ) ;
899+ c2 = redis . createClient ( PORT , HOST , { socket_nodelay : false , parser : parser } ) ;
900+ c3 = redis . createClient ( PORT , HOST , { parser : parser } ) ;
901901
902902 function quit_check ( ) {
903903 quit_count ++ ;
@@ -1258,8 +1258,8 @@ tests.SUBSCRIBE_QUIT = function () {
12581258
12591259tests . SUBSCRIBE_CLOSE_RESUBSCRIBE = function ( ) {
12601260 var name = "SUBSCRIBE_CLOSE_RESUBSCRIBE" ;
1261- var c1 = redis . createClient ( { parser : parser } ) ;
1262- var c2 = redis . createClient ( { parser : parser } ) ;
1261+ var c1 = redis . createClient ( PORT , HOST , { parser : parser } ) ;
1262+ var c2 = redis . createClient ( PORT , HOST , { parser : parser } ) ;
12631263 var count = 0 ;
12641264
12651265 /* Create two clients. c1 subscribes to two channels, c2 will publish to them.
@@ -2055,7 +2055,7 @@ tests.MONITOR = function () {
20552055 return next ( name ) ;
20562056 }
20572057
2058- monitor_client = redis . createClient ( { parser : parser } ) ;
2058+ monitor_client = redis . createClient ( PORT , HOST , { parser : parser } ) ;
20592059 monitor_client . monitor ( function ( err , res ) {
20602060 client . mget ( "some" , "keys" , "foo" , "bar" ) ;
20612061 client . set ( "json" , JSON . stringify ( {
@@ -2329,7 +2329,7 @@ tests.reconnectRetryMaxDelay = function() {
23292329
23302330tests . unref = function ( ) {
23312331 var name = "unref" ;
2332- var external = fork ( "./test/test-unref.js" ) ;
2332+ var external = fork ( "./test/test-unref.js" , [ PORT , HOST ] ) ;
23332333 var done = false ;
23342334 external . on ( "close" , function ( code ) {
23352335 assert ( code == 0 , "test-unref.js failed" ) ;
0 commit comments