Skip to content

EspoCRM – Open Source CRM Application

Fix tests in PG

Yuriib82c21e12bdc
diff --git a/tests/integration/Espo/Currency/CurrencyTest.php b/tests/integration/Espo/Currency/CurrencyTest.php
index 109f35ab3d..a96898a20a 100644
--- a/tests/integration/Espo/Currency/CurrencyTest.php
+++ b/tests/integration/Espo/Currency/CurrencyTest.php
@@ -201,7 +201,9 @@ class CurrencyTest extends BaseTestCase
'USD' => 0.5,
], 'EUR'));
- $this->getDataManager()->rebuild([]);
+ // Full rebuild caused a problem with the test transaction in PG.
+ $this->getDataManager()->rebuildMetadata();
+
$this->reCreateApplication(reuse: true);
$em = $this->getEntityManager();
@@ -243,7 +245,9 @@ class CurrencyTest extends BaseTestCase
'USD' => 0.5,
], 'EUR'));
- $this->getDataManager()->rebuild([]);
+ // Full rebuild caused a problem with the test transaction in PG.
+ $this->getDataManager()->rebuildMetadata();
+
$this->reCreateApplication(reuse: true);
$em = $this->getEntityManager();