Skip to content

Commit df62489

Browse files
authored
Merge pull request #74 from negram/increase-timer-tolerance
Increase tolerance to latencies
2 parents 41c5735 + 3e94a64 commit df62489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/tests/xhprof_005.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ function verify($expected, $actual, $description) {
5151

5252
echo "Verifying {$description}...\n";
5353

54-
// 25% tolerance
54+
// 25% tolerance (+ 1.5msec for slow builds)
5555
$range_low = ($expected * 0.75);
56-
$range_high = ($expected * 1.25);
56+
$range_high = ($expected * 1.25) + 1500;
5757

5858
if (($actual < $range_low) ||
5959
($actual > $range_high)) {

0 commit comments

Comments
 (0)