Skip to content

Commit

Permalink
timer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hotrush committed Apr 23, 2018
1 parent 9017682 commit 172abda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testStartAndStopATransaction()
// Create a Transaction, wait and Stop it
$name = 'trx';
$agent->startTransaction($name);
usleep(10);
usleep(10000);
$agent->stopTransaction($name);

$duration = $agent->getTransaction($name)->getDuration();
Expand Down
4 changes: 2 additions & 2 deletions tests/Helper/TimerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testCanBeStartedAndStoppedWithDuration()
$duration = rand(25, 100);

$timer->start();
usleep($duration);
usleep($duration * 1000);
$timer->stop();

$this->assertGreaterThanOrEqual($duration, $timer->getDuration());
Expand All @@ -43,7 +43,7 @@ public function testGetElapsedDurationWithoutError()
$timer = new Timer();

$timer->start();
usleep(10);
usleep(10000);
$elapsed = $timer->getElapsed();
$timer->stop();

Expand Down

0 comments on commit 172abda

Please sign in to comment.