From: Michael Date: Sat, 28 Jan 2023 15:29:55 +0000 (+0000) Subject: Possibly fix the test problems X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5315bc3712d557de87c96dbe05b54ce312c07209;p=friendica.git Possibly fix the test problems --- diff --git a/tests/FixtureTest.php b/tests/FixtureTest.php index d16119dd91..dac71f0cf6 100644 --- a/tests/FixtureTest.php +++ b/tests/FixtureTest.php @@ -82,7 +82,10 @@ abstract class FixtureTest extends DatabaseTest $dba->setTestmode(true); - DBStructure::checkInitialValues(); + if (DI::lock()->acquire('Test-checkInitialValues', 0)) { + DBStructure::checkInitialValues(); + DI::lock()->release('Test-checkInitialValues'); + } // Load the API dataset for the whole API $this->loadFixture(__DIR__ . '/datasets/api.fixture.php', $dba);