diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-04-14 18:11:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 18:11:15 +0300 |
commit | 53ff3fb4b57dbe898f981b165a8f6510690ea565 (patch) | |
tree | 65f8c520faf2fce337d34f2050576fa6deda7c28 /tests | |
parent | 05f72613c1c5aa86680e6dc5fd6d3da21c23a240 (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/javascript/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |