Browse Source

Add CoroutinesAnnotationTransactionInterceptorTests

suspendingValueSuccess() currently fails due to an
unexpected rollback on transactional suspending functions
returning a value.

See gh-25998
pull/26050/head
Sébastien Deleuze 5 years ago
parent
commit
bdf120f1ef
  1. 2
      spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt

2
spring-tx/src/test/kotlin/org/springframework/transaction/annotation/CoroutinesAnnotationTransactionInterceptorTests.kt

@ -80,8 +80,6 @@ class CoroutinesAnnotationTransactionInterceptorTests { @@ -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)

Loading…
Cancel
Save