Skip to content

Commit b200971

Browse files
committed
test: reproduce transaction validation issue, #2953
1 parent bf32311 commit b200971

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/springframework/data/neo4j/integration/imperative/Neo4jTemplateIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,9 @@ public BookmarkCapture bookmarkCapture() {
10061006
public PlatformTransactionManager transactionManager(Driver driver, DatabaseSelectionProvider databaseNameProvider) {
10071007

10081008
BookmarkCapture bookmarkCapture = bookmarkCapture();
1009-
return new Neo4jTransactionManager(driver, databaseNameProvider, Neo4jBookmarkManager.create(bookmarkCapture));
1009+
Neo4jTransactionManager transactionManager = new Neo4jTransactionManager(driver, databaseNameProvider, Neo4jBookmarkManager.create(bookmarkCapture));
1010+
transactionManager.setValidateExistingTransaction(true);
1011+
return transactionManager;
10101012
}
10111013

10121014
@Override

0 commit comments

Comments
 (0)