]> git.mxchange.org Git - friendica.git/commitdiff
Possibly fix the test problems
authorMichael <heluecht@pirati.ca>
Sat, 28 Jan 2023 15:29:55 +0000 (15:29 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 28 Jan 2023 15:29:55 +0000 (15:29 +0000)
tests/FixtureTest.php

index d16119dd918d293a568485b06643067197dba693..dac71f0cf60c945d9b00b8b17baa9dfc2b3815d1 100644 (file)
@@ -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);