Skip to content

Commit 5f5d68f

Browse files
committed
Fix test CoroutinesTransactionInterceptorTests
1 parent e7f9cb8 commit 5f5d68f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-tx/src/test/kotlin/org/springframework/transaction/interceptor/AbstractCoroutinesTransactionAspectTests.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ abstract class AbstractCoroutinesTransactionAspectTests {
291291
itb.setName(name)
292292
}
293293
catch (actual: Exception) {
294-
assertThat(actual).isEqualTo(ex)
294+
assertThat(actual).isInstanceOf(ex.javaClass)
295+
assertThat(actual).hasMessage(ex.message)
295296
}
296297
// Should have invoked target and changed name
297298
assertThat(itb.getName()).isEqualTo(name)

0 commit comments

Comments
 (0)