mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-02 20:09:31 +01:00
Use IllegalStateException in ReactiveTestTransactionManager.doCommit()
See gh-30107
This commit is contained in:
committed by
Stephane Nicoll
parent
542d0ef0b4
commit
112f755e17
+1
-1
@@ -89,7 +89,7 @@ class ReactiveTestTransactionManager extends AbstractReactiveTransactionManager
|
||||
return Mono.fromRunnable(() -> {
|
||||
this.commit = true;
|
||||
if (this.forceFailOnCommit) {
|
||||
throw new IllegalArgumentException("Forced failure on commit");
|
||||
throw new IllegalStateException("Forced failure on commit");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user