@mattab opened this Issue on May 16th 2017 Member

Around midnight UTC, one of the system tests fails due to a race condition of some sort.

Example failing test: https://travis-ci.org/piwik/piwik/jobs/232632981

Output:

1) Piwik\Plugins\Live\tests\System\ApiCounterTest::test_GetCounters_ShouldOnlyReturnResultsOfLastMinutes
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
-        'visits' => 24
-        'actions' => 60
-        'visitors' => 20
-        'visitsConverted' => 40
+        'visits' => '27'
+        'actions' => '60'
+        'visitors' => '20'
+        'visitsConverted' => '40'
     )
 )
/home/travis/build/piwik/piwik/plugins/Live/tests/System/ApiCounterTest.php:67
2) Piwik\Plugins\Live\tests\System\ApiCounterTest::test_GetCounters_ShouldHideSomeColumnsIfRequested
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
-        'visits' => 24
-        'actions' => 60
+        'visits' => '27'
+        'actions' => '60'
     )
 )
/home/travis/build/piwik/piwik/plugins/Live/tests/System/ApiCounterTest.php:83
3) Piwik\Plugins\Live\tests\System\ApiCounterTest::test_GetCounters_ShouldShowAllColumnsIfRequested
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
-        'visits' => 24
-        'actions' => 60
-        'visitors' => 20
-        'visitsConverted' => 40
+        'visits' => '27'
+        'actions' => '60'
+        'visitors' => '20'
+        'visitsConverted' => '40'
     )
 )
/home/travis/build/piwik/piwik/plugins/Live/tests/System/ApiCounterTest.php:90
4) Piwik\Plugins\Live\tests\System\ApiCounterTest::test_GetCounters_ShouldShowSomeColumnsIfRequested
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
-        'visits' => 24
-        'actions' => 60
+        'visits' => '27'
+        'actions' => '60'
     )
 )
/home/travis/build/piwik/piwik/plugins/Live/tests/System/ApiCounterTest.php:96
5) Piwik\Plugins\Live\tests\System\ApiCounterTest::test_GetCounters_ShouldHideColumnIfGivenInShowAndHide
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
-        'visits' => 24
+        'visits' => '27'
     )
 )
/home/travis/build/piwik/piwik/plugins/Live/tests/System/ApiCounterTest.php:102
@mattab commented on June 18th 2019 Member

Probably it doesn't occur anymore.

This Issue was closed on June 18th 2019
Powered by GitHub Issue Mirror