Skip to content

Commit

Permalink
Fix timeout tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyuki committed Mar 19, 2014
1 parent 8b6bcb9 commit acc261b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/Tests/TransportSocketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ public function connect_timeout()
catch (RuntimeException $ex)
{
$this->assertLessThan(2.1, microtime(true) - $time);
$this->assertGreaterThan(1.9, microtime(true) - $time);
$this->assertContains("connect", $ex->getMessage());
$this->assertContains("Operation now in progress", $ex->getMessage());
}
}

Expand Down
2 changes: 0 additions & 2 deletions tests/Tests/TransportStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ public function connect_timeout()
catch (RuntimeException $ex)
{
$this->assertLessThan(2.1, microtime(true) - $time);
$this->assertGreaterThan(1.9, microtime(true) - $time);
$this->assertContains("connect", $ex->getMessage());
$this->assertContains("Connection timed out", $ex->getMessage());
}
}

Expand Down

0 comments on commit acc261b

Please sign in to comment.