File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 16
16
"evenement/evenement" : " ^3.0 || ^2.0 || ^1.0" ,
17
17
"react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3" ,
18
18
"react/promise" : " ^2.0 || ^1.1" ,
19
- "react/socket" : " ^1.0 || ^0.8 || ^0.7 "
19
+ "react/socket" : " ^1.0 || ^0.8.3 "
20
20
},
21
21
"autoload" : {
22
22
"psr-4" : { "Clue\\ React\\ Redis\\ " : " src/" }
Original file line number Diff line number Diff line change @@ -107,10 +107,6 @@ private function parseUrl($target)
107
107
$ parts ['port ' ] = 6379 ;
108
108
}
109
109
110
- if ($ parts ['host ' ] === 'localhost ' ) {
111
- $ parts ['host ' ] = '127.0.0.1 ' ;
112
- }
113
-
114
110
if (isset ($ parts ['pass ' ])) {
115
111
$ parts ['auth ' ] = rawurldecode ($ parts ['pass ' ]);
116
112
}
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ public function testWillConnectWithDefaultPort()
27
27
$ this ->factory ->createClient ('redis.example.com ' );
28
28
}
29
29
30
- public function testWillConnectToLocalIpWhenTargetIsLocalhost ()
30
+ public function testWillConnectToLocalhost ()
31
31
{
32
- $ this ->connector ->expects ($ this ->once ())->method ('connect ' )->with ('127.0.0.1 :1337 ' )->willReturn (Promise \reject (new \RuntimeException ()));
32
+ $ this ->connector ->expects ($ this ->once ())->method ('connect ' )->with ('localhost :1337 ' )->willReturn (Promise \reject (new \RuntimeException ()));
33
33
$ this ->factory ->createClient ('localhost:1337 ' );
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments