From bdf120f1efcafe4312bdb2e638073549c01d2084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Mon, 9 Nov 2020 10:10:25 +0100 Subject: [PATCH] Add CoroutinesAnnotationTransactionInterceptorTests suspendingValueSuccess() currently fails due to an unexpected rollback on transactional suspending functions returning a value. See gh-25998 --- .../CoroutinesAnnotationTransactionInterceptorTests.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt b/spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt index 7b38b7efe74..570af8a9914 100644 --- a/spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt +++ b/spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt @@ -80,8 +80,6 @@ class CoroutinesAnnotationTransactionInterceptorTests { assertReactiveGetTransactionAndRollbackCount(1) } - - private fun assertReactiveGetTransactionAndCommitCount(expectedCount: Int) { Assertions.assertThat(rtm.begun).isEqualTo(expectedCount) Assertions.assertThat(rtm.commits).isEqualTo(expectedCount)