Skip to content

Commit 7c098cf

Browse files
author
Zhen Li
committed
Temp fix for server not being able to read full path with \ as file seperator on windows
1 parent a619882 commit 7c098cf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

driver/src/test/java/org/neo4j/driver/v1/integration/CredentialsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private void enableAuth( String password ) throws Exception
8989
{
9090
neo4j.restartServerOnEmptyDatabase( Neo4jSettings.DEFAULT
9191
.updateWith( Neo4jSettings.AUTH_ENABLED, "true" )
92-
.updateWith( Neo4jSettings.DATA_DIR, tempDir.getRoot().getAbsolutePath() ));
92+
.updateWith( Neo4jSettings.DATA_DIR, tempDir.getRoot().getAbsolutePath().replace("\\", "/") ));
9393

9494
Driver setPassword = GraphDatabase.driver( neo4j.address(), new InternalAuthToken(
9595
parameters(

driver/src/test/java/org/neo4j/driver/v1/integration/TLSSocketChannelIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ private void createFakeServerCertPairInKnownCerts( String host, int port, File k
201201
public void shouldFailTLSHandshakeDueToServerCertNotSignedByKnownCA() throws Throwable
202202
{
203203
// Given
204-
neo4j.restartServerOnEmptyDatabase( Neo4jSettings.DEFAULT.updateWith( Neo4jSettings.CERT_DIR, folder.getRoot().getAbsolutePath() ) );
204+
neo4j.restartServerOnEmptyDatabase(
205+
Neo4jSettings.DEFAULT.updateWith(
206+
Neo4jSettings.CERT_DIR,
207+
folder.getRoot().getAbsolutePath().replace("\\", "/") ) );
205208
SocketChannel channel = SocketChannel.open();
206209
channel.connect( new InetSocketAddress( "localhost", 7687 ) );
207210
File trustedCertFile = folder.newFile( "neo4j_trusted_cert.tmp" );

0 commit comments

Comments
 (0)