Skip to content

Commit

Permalink
Revert "Make test a bit more solid."
Browse files Browse the repository at this point in the history
This reverts commit 072991d.
  • Loading branch information
markstory committed Sep 1, 2012
1 parent 072991d commit 21a51a3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/Cake/Test/Case/Network/CakeSocketTest.php
Expand Up @@ -179,18 +179,11 @@ public function testTimeOutConnection() {
$config = array('host' => '127.0.0.1', 'timeout' => 0.5);
$this->Socket = new CakeSocket($config);
$this->assertTrue($this->Socket->connect());
}

/**
* test timing out raises exception
*
* @expectedException SocketException
* @expectedExceptionMessage Operation timed out
*/
public function testTimeOutThrowException() {
$config = array('host' => '127.0.0.1', 'timeout' => 0.00001);
$this->Socket = new CakeSocket($config);
$this->Socket->read(1024 * 1024);
$this->assertFalse($this->Socket->read(1024 * 1024));
$this->assertEquals('2: ' . __d('cake_dev', 'Connection timed out'), $this->Socket->lastError());
}

/**
Expand Down

0 comments on commit 21a51a3

Please sign in to comment.