Use IllegalStateException in ReactiveTestTransactionManager.doCommit()
See gh-30107
This commit is contained in:
parent
542d0ef0b4
commit
112f755e17
|
@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue