Skip to content

Commit cba0379

Browse files
committed
Use different driver method in testing to ensure driver is usable.
The `verifyConnectivity` method only ensures an exception if we are using the bolt scheme. Using the neo4j scheme will run into an uncertain state and report the driver as usable. Signed-off-by: Gerrit Meier <[email protected]>
1 parent 62d0dc4 commit cba0379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private static boolean isUsable(Driver driver) {
240240
return false;
241241
}
242242
try {
243-
driver.verifyConnectivity();
243+
driver.isEncrypted();
244244
return true;
245245
}
246246
catch (Exception ex) {

0 commit comments

Comments
 (0)