From 3e94a64579bcd5a09cb14bcb02146494830aed8d Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Fri, 9 Dec 2022 14:33:26 +0000 Subject: [PATCH] Increase tolerance to latencies --- extension/tests/xhprof_005.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/tests/xhprof_005.phpt b/extension/tests/xhprof_005.phpt index 9c2429a1..48d012e6 100644 --- a/extension/tests/xhprof_005.phpt +++ b/extension/tests/xhprof_005.phpt @@ -51,9 +51,9 @@ function verify($expected, $actual, $description) { echo "Verifying {$description}...\n"; - // 25% tolerance + // 25% tolerance (+ 1.5msec for slow builds) $range_low = ($expected * 0.75); - $range_high = ($expected * 1.25); + $range_high = ($expected * 1.25) + 1500; if (($actual < $range_low) || ($actual > $range_high)) {