build: Always create fresh driver for neo4j protocol.

Routing causes issues when the driver is reused.
This commit is contained in:
Michael Simons
2025-03-13 12:36:01 +01:00
parent 4bad425aa7
commit def173f190

View File

@@ -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) {