Merge pull request #30107 from izeye
* pr/30107: Use IllegalStateException in ReactiveTestTransactionManager.doCommit() Closes gh-30107
This commit is contained in:
@@ -89,7 +89,7 @@ class ReactiveTestTransactionManager extends AbstractReactiveTransactionManager
|
|||||||
return Mono.fromRunnable(() -> {
|
return Mono.fromRunnable(() -> {
|
||||||
this.commit = true;
|
this.commit = true;
|
||||||
if (this.forceFailOnCommit) {
|
if (this.forceFailOnCommit) {
|
||||||
throw new IllegalArgumentException("Forced failure on commit");
|
throw new IllegalStateException("Forced failure on commit");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user