Skip to content
Permalink
Browse files

Some fixes to make the test more reliable.

  • Loading branch information...
markstory committed Sep 19, 2010
1 parent d0028bf commit 98d1272374f2fa26c9f6ada5b17a5343f3e95600
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/libs/cake_socket.test.php
@@ -145,13 +145,13 @@ function testSocketReading() {
$this->Socket->connect();
$this->assertEqual($this->Socket->read(26), null);
$config = array('host' => '127.0.0.1', 'timeout' => 1);
$config = array('host' => '127.0.0.1', 'timeout' => 0.5);
$this->Socket = new CakeSocket($config);
$this->assertTrue($this->Socket->connect());
$this->assertFalse($this->Socket->read(1024 * 1024));
$this->assertEqual($this->Socket->lastError(), '2: ' . __('Connection timed out'));
$config = array('host' => 'localhost', 'timeout' => 30);
$config = array('host' => 'cakephp.org', 'port' => 80, 'timeout' => 20);
$this->Socket = new CakeSocket($config);
$this->assertTrue($this->Socket->connect());
$this->assertEqual($this->Socket->read(26), null);

0 comments on commit 98d1272

Please sign in to comment.
You can’t perform that action at this time.