Skip to content

Commit

Permalink
test: disable view background execution in storage integration test, …
Browse files Browse the repository at this point in the history
…causing sporious failures
  • Loading branch information
tglman committed Sep 19, 2023
1 parent 72d739b commit d580b8c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.orientechnologies.common.serialization.types.OIntegerSerializer;
import com.orientechnologies.orient.core.OCreateDatabaseUtil;
import com.orientechnologies.orient.core.config.OGlobalConfiguration;
import com.orientechnologies.orient.core.db.ODatabaseDocumentInternal;
import com.orientechnologies.orient.core.db.ODatabaseInternal;
import com.orientechnologies.orient.core.db.ODatabaseSession;
import com.orientechnologies.orient.core.db.OrientDB;
Expand Down Expand Up @@ -79,12 +80,16 @@ public void before() throws IOException {
// orientDB.create(ACTUAL_DB_NAME, ODatabaseType.PLOCAL);
databaseDocumentTx =
orientDB.open(ACTUAL_DB_NAME, "admin", OCreateDatabaseUtil.NEW_ADMIN_PASSWORD);
((ODatabaseDocumentInternal) databaseDocumentTx).getSharedContext().getViewManager().close();

OCreateDatabaseUtil.createDatabase(EXPECTED_DB_NAME, orientDB, OCreateDatabaseUtil.TYPE_PLOCAL);
// orientDB.create(EXPECTED_DB_NAME, ODatabaseType.PLOCAL);
expectedDatabaseDocumentTx =
orientDB.open(EXPECTED_DB_NAME, "admin", OCreateDatabaseUtil.NEW_ADMIN_PASSWORD);

((ODatabaseDocumentInternal) expectedDatabaseDocumentTx)
.getSharedContext()
.getViewManager()
.close();
expectedStorage =
((OLocalPaginatedStorage) ((ODatabaseInternal<?>) expectedDatabaseDocumentTx).getStorage());
actualStorage =
Expand Down

0 comments on commit d580b8c

Please sign in to comment.