Skip to content

Commit

Permalink
neo4j server so much neo4j server
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Nov 16, 2017
1 parent 7a34ba1 commit bb2e2ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public CommunityNeoServer build() throws IOException
final File configFile = buildBefore();

Log log = logProvider.getLog( getClass() );
Config config = Config.fromFile( configFile ).withServerDefaults().build();
Config config = Config.fromFile( configFile ).withHome( configFile.getParentFile() )
.withServerDefaults().build();
config.setLogger( log );
return build( configFile, config, GraphDatabaseDependencies.newDependencies().userLogProvider( logProvider )
.monitors( new Monitors() ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import java.io.IOException;

import org.neo4j.graphdb.factory.GraphDatabaseSettings;
import org.neo4j.server.CommunityNeoServer;
import org.neo4j.server.helpers.CommunityServerBuilder;
import org.neo4j.server.helpers.FunctionalTestHelper;
Expand Down Expand Up @@ -56,6 +57,7 @@ public static void allocateServer() throws IOException
server = CommunityServerBuilder.serverOnRandomPorts()
.usingDataDir( staticFolder.getRoot().getAbsolutePath() )
.withAutoIndexingEnabledForNodes( "foo", "bar" )
.withProperty( GraphDatabaseSettings.neo4j_home.name(), staticFolder.getRoot().getAbsolutePath() )
.build();
server.start();
functionalTestHelper = new FunctionalTestHelper( server );
Expand Down

0 comments on commit bb2e2ab

Please sign in to comment.