You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by st...@apache.org on 2015/08/24 17:37:12 UTC
svn commit: r1697438 -
/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java
Author: stefanegli
Date: Mon Aug 24 15:37:11 2015
New Revision: 1697438
URL: http://svn.apache.org/r1697438
Log:
OAK-2844 : reactivating test and removing unnecessary user.dir changing - that was a left-over of initial prototyping and using setFinalStatic works for now, somewhat hacky, but it's a test
Modified:
jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java
Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java?rev=1697438&r1=1697437&r2=1697438&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java Mon Aug 24 15:37:11 2015
@@ -80,7 +80,6 @@ import com.mongodb.DB;
/**
* Tests for the DocumentDiscoveryLiteService
*/
-@Ignore("OAK-2844 : user.dir trick messes up with the other tests")
public class DocumentDiscoveryLiteServiceTest {
/**
@@ -589,7 +588,6 @@ public class DocumentDiscoveryLiteServic
// start
private DocumentNodeStore createNodeStore(String workingDir) throws SecurityException, Exception {
// ensure that we always get a fresh cluster[node]id
- System.setProperty("user.dir", workingDir);
setFinalStatic(ClusterNodeInfo.class.getDeclaredField("WORKING_DIR"), workingDir);
// then create the DocumentNodeStore