Skip to content

Commit d80dd50

Browse files
committed
Add CoroutinesAnnotationTransactionInterceptorTests
suspendingValueSuccess() currently fails due to an unexpected rollback on transactional suspending functions returning a value. See gh-25998
1 parent bdf120f commit d80dd50

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2002-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.transaction.annotation
218

319
import kotlinx.coroutines.delay
@@ -11,6 +27,9 @@ import org.springframework.transaction.interceptor.TransactionInterceptor
1127
import org.springframework.transaction.testfixture.CallCountingTransactionManager
1228
import org.springframework.transaction.testfixture.ReactiveCallCountingTransactionManager
1329

30+
/**
31+
* @author Sebastien Deleuze
32+
*/
1433
class CoroutinesAnnotationTransactionInterceptorTests {
1534

1635
private val ptm = CallCountingTransactionManager()

0 commit comments

Comments
 (0)