Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 9d8751a

Browse files
committed
Increase timeout limits on valgrind builds even more
1 parent 3b4087f commit 9d8751a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/V8Isolate_limit_time.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ $script = new V8\Script($context, new \V8\StringValue($isolate, $source), new \V
2828
if ($helper->need_more_time()) {
2929
// On travis when valgrind active it takes more time to complete all operations so we just increase initial limits
3030
$time_limit = 5.0;
31-
$low_range = 4.5;
32-
$high_range = 20.0;
31+
$low_range = $time_limit/2;
32+
$high_range = $time_limit*20;
3333
} else {
3434
$time_limit = 1.5;
3535
$low_range = 1.45;

tests/V8Isolate_limit_time_nested.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ $script1 = new V8\Script($context1, new \V8\StringValue($isolate1, $source1), ne
6060
if ($helper->need_more_time()) {
6161
// On travis when valgrind active it takes more time to complete all operations so we just increase initial limits
6262
$time_limit = 5.0;
63-
$low_range = 4.5;
64-
$high_range = 20.0;
63+
$low_range = $time_limit/2;
64+
$high_range = $time_limit*20;
6565
} else {
6666
$time_limit = 1.5;
6767
$low_range = 1.45;

tests/V8Isolate_limit_time_set_during_execution.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ $context1 = new V8\Context($isolate1, $extensions1, $global_template1);
2020
if ($helper->need_more_time()) {
2121
// On travis when valgrind active it takes more time to complete all operations so we just increase initial limits
2222
$time_limit = 5.0;
23-
$low_range = 4.5;
24-
$high_range = 20.0;
23+
$low_range = $time_limit/2;
24+
$high_range = $time_limit*20;
2525
} else {
2626
$time_limit = 1.5;
2727
$low_range = 1.45;

0 commit comments

Comments
 (0)