From 53ff3fb4b57dbe898f981b165a8f6510690ea565 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Thu, 14 Apr 2022 17:11:15 +0200 Subject: Fix javascript test (#19104) Looking at the last failing javascript builds it seems that in some cases the event takes exactly 520 seconds in some cases I also saw values up to 523. Guess it shouldn't hurt to increase the value by 5 to avoid random failures. --- tests/javascript/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/javascript/index.php b/tests/javascript/index.php index 5a8c081c66..6122289153 100644 --- a/tests/javascript/index.php +++ b/tests/javascript/index.php @@ -5208,7 +5208,7 @@ if ($mysql) { tracker.hook.test._beforeUnloadHandler(); stopTime = new Date(); var msSinceStarted = (stopTime.getTime() - startTime.getTime()); - ok( msSinceStarted < 520, 'beforeUnloadHandler(): ' + msSinceStarted + ' was greater than 520 ' ); + ok( msSinceStarted < 525, 'beforeUnloadHandler(): ' + msSinceStarted + ' was greater than 520 ' ); tracker.disableAlwaysUseSendBeacon(); tracker.setLinkTrackingTimer(2000); -- cgit v1.2.3