Database thread local is cleared on remote tests.
@@ -36,6 +36,8 @@ public class OrientDBRemoteTest {
@Before
public void before() throws Exception {
+ ODatabaseRecordThreadLocal.instance().remove();
+
OGlobalConfiguration.SERVER_BACKWARD_COMPATIBILITY.setValue(false);
server = new OServer(false);
server.setServerRootDirectory(SERVER_DIRECTORY);
@@ -256,5 +258,7 @@ public class OrientDBRemoteTest {
Orient.instance().shutdown();
OFileUtils.deleteRecursively(new File(SERVER_DIRECTORY));
Orient.instance().startup();
+
+ ODatabaseRecordThreadLocal.instance().remove();
}
}
