build: Always create fresh driver for neo4j protocol.
Routing causes issues when the driver is reused.
This commit is contained in:
@@ -212,6 +212,10 @@ public class Neo4jExtension implements BeforeAllCallback, BeforeEachCallback {
|
||||
*/
|
||||
public Driver getDriver() {
|
||||
|
||||
if (uri.getScheme().startsWith("neo4j")) {
|
||||
return createDriverInstance();
|
||||
}
|
||||
|
||||
Driver driver = this.driverInstance;
|
||||
if (!isUsable(driver)) {
|
||||
synchronized (this) {
|
||||
|
||||
Reference in New Issue
Block a user