Skip to content

Commit 4273553

Browse files
committed
Increase test timers so they do not fail on travis
1 parent 3af5edf commit 4273553

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/React/Tests/Async/UtilParallelTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public function testParallelWithTasks()
2222

2323
$tasks = array(
2424
function ($callback, $errback) use ($loop) {
25-
$loop->addTimer(0.006, function () use ($callback) {
25+
$loop->addTimer(0.1, function () use ($callback) {
2626
$callback('foo');
2727
});
2828
},
2929
function ($callback, $errback) use ($loop) {
30-
$loop->addTimer(0.005, function () use ($callback) {
30+
$loop->addTimer(0.1, function () use ($callback) {
3131
$callback('bar');
3232
});
3333
},
@@ -44,7 +44,7 @@ function ($callback, $errback) use ($loop) {
4444
$loop->run();
4545

4646
$timer->stop();
47-
$timer->assertInRange(0.005, 0.013);
47+
$timer->assertInRange(0.1, 0.2);
4848
}
4949

5050
public function testParallelWithError()

tests/React/Tests/Async/UtilSeriesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public function testSeriesWithTasks()
2222

2323
$tasks = array(
2424
function ($callback, $errback) use ($loop) {
25-
$loop->addTimer(0.001, function () use ($callback) {
25+
$loop->addTimer(0.05, function () use ($callback) {
2626
$callback('foo');
2727
});
2828
},
2929
function ($callback, $errback) use ($loop) {
30-
$loop->addTimer(0.002, function () use ($callback) {
30+
$loop->addTimer(0.05, function () use ($callback) {
3131
$callback('bar');
3232
});
3333
},
@@ -44,7 +44,7 @@ function ($callback, $errback) use ($loop) {
4444
$loop->run();
4545

4646
$timer->stop();
47-
$timer->assertInRange(0.003, 0.010);
47+
$timer->assertInRange(0.10, 0.20);
4848
}
4949

5050
public function testSeriesWithError()

0 commit comments

Comments
 (0)