diff --git a/core/src/test/java/com/orientechnologies/orient/core/storage/index/hashindex/local/v3/OLocalHashTableV3WALTestIT.java b/core/src/test/java/com/orientechnologies/orient/core/storage/index/hashindex/local/v3/OLocalHashTableV3WALTestIT.java index 32f54a8c6d1..15583c16d85 100755 --- a/core/src/test/java/com/orientechnologies/orient/core/storage/index/hashindex/local/v3/OLocalHashTableV3WALTestIT.java +++ b/core/src/test/java/com/orientechnologies/orient/core/storage/index/hashindex/local/v3/OLocalHashTableV3WALTestIT.java @@ -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; @@ -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 =