Skip to content

Commit def173f

Browse files
build: Always create fresh driver for neo4j protocol.
Routing causes issues when the driver is reused.
1 parent 4bad425 commit def173f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/springframework/data/neo4j/test/Neo4jExtension.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ public Neo4jConnectionSupport(String url, AuthToken authToken) {
212212
*/
213213
public Driver getDriver() {
214214

215+
if (uri.getScheme().startsWith("neo4j")) {
216+
return createDriverInstance();
217+
}
218+
215219
Driver driver = this.driverInstance;
216220
if (!isUsable(driver)) {
217221
synchronized (this) {

0 commit comments

Comments
 (0)