Skip to content

Commit

Permalink
Be more flexible on runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Sep 14, 2015
1 parent a25c073 commit 662313d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Loop/AbstractLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
*/
abstract class AbstractLoopTest extends TestCase
{
const TIMEOUT = 0.2;
const RUNTIME = 0.05; // Allowed deviation from projected run times.
const TIMEOUT = 0.3;
const RUNTIME = 0.1; // Allowed deviation from projected run times.
const MICROSEC_PER_SEC = 1e6;
const WRITE_STRING = '1234567890';
const RESOURCE = 1;
Expand Down Expand Up @@ -1424,7 +1424,7 @@ public function testReferenceSignal()

$this->assertFalse($this->loop->isEmpty());

$this->assertRunTimeGreaterThan([$this->loop, 'run'], 1);
$this->assertRunTimeGreaterThan([$this->loop, 'run'], 1 - self::RUNTIME);
}

/**
Expand Down

0 comments on commit 662313d

Please sign in to comment.