File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,13 +145,13 @@ function testSocketReading() {
145
145
$ this ->Socket ->connect ();
146
146
$ this ->assertEqual ($ this ->Socket ->read (26 ), null );
147
147
148
- $ config = array ('host ' => '127.0.0.1 ' , 'timeout ' => 1 );
148
+ $ config = array ('host ' => '127.0.0.1 ' , 'timeout ' => 0.5 );
149
149
$ this ->Socket = new CakeSocket ($ config );
150
150
$ this ->assertTrue ($ this ->Socket ->connect ());
151
151
$ this ->assertFalse ($ this ->Socket ->read (1024 * 1024 ));
152
152
$ this ->assertEqual ($ this ->Socket ->lastError (), '2: ' . __ ('Connection timed out ' ));
153
153
154
- $ config = array ('host ' => 'localhost ' , 'timeout ' => 30 );
154
+ $ config = array ('host ' => 'cakephp.org ' , 'port ' => 80 , ' timeout ' => 20 );
155
155
$ this ->Socket = new CakeSocket ($ config );
156
156
$ this ->assertTrue ($ this ->Socket ->connect ());
157
157
$ this ->assertEqual ($ this ->Socket ->read (26 ), null );
You can’t perform that action at this time.
0 commit comments