From 65b2e4efa7dca9308b6d86a2353e733494d5525a Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 23 May 2020 21:17:43 +0200 Subject: [PATCH] do not check for mariadb.sys user on mariadb-10.4 when testing with travis Signed-off-by: Michael Kaufmann --- tests/Mysqls/MysqlsTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Mysqls/MysqlsTest.php b/tests/Mysqls/MysqlsTest.php index 8d521452..d216c08b 100644 --- a/tests/Mysqls/MysqlsTest.php +++ b/tests/Mysqls/MysqlsTest.php @@ -210,6 +210,11 @@ class MysqlsTest extends TestCase $dbm = new \Froxlor\Database\DbManager(\Froxlor\FroxlorLogger::getInstanceOf()); $users = $dbm->getManager()->getAllSqlUsers(false); foreach ($users as $user => $data) { + if (TRAVIS_CI == 1 && strtolower($user) == 'mariadb.sys') { + // travis seems to have a user for mariadb on version 10.4 + // we do not want to test that one + continue; + } $this->assertNotEmpty($data['password'], 'No password for user "' . $user . '"'); }