From 414dba01398f6fe0045d570f65d6f1d76ab29b7d Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Wed, 29 Jan 2014 16:41:13 +1300 Subject: [PATCH] Skip test on Mysqli --- tests/PHPUnit/Integration/AutoSuggestAPITest.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/PHPUnit/Integration/AutoSuggestAPITest.php b/tests/PHPUnit/Integration/AutoSuggestAPITest.php index e940980e66..10d2615e5a 100644 --- a/tests/PHPUnit/Integration/AutoSuggestAPITest.php +++ b/tests/PHPUnit/Integration/AutoSuggestAPITest.php @@ -46,10 +46,15 @@ class Test_Piwik_Integration_AutoSuggestAPITest extends IntegrationTestCase $apiForTesting[] = $this->getApiForTestingForSegment($idSite, $segment['segment']); } - $apiForTesting[] = array('Live.getLastVisitsDetails', - array('idSite' => $idSite, - 'date' => date('Y-m-d', strtotime(self::$fixture->dateTime)), - 'period' => 'year')); + // Skip the test on Mysqli as it fails due to rounding Float errors on latitude/longitude + if(getenv('MYSQL_ADAPTER') != 'MYSQLI') { + + $apiForTesting[] = array('Live.getLastVisitsDetails', + array('idSite' => $idSite, + 'date' => date('Y-m-d', strtotime(self::$fixture->dateTime)), + 'period' => 'year')); + + } return $apiForTesting; } -- GitLab