Merge pull request #30107 from izeye

* pr/30107:
  Use IllegalStateException in ReactiveTestTransactionManager.doCommit()

Closes gh-30107
This commit is contained in:
Stephane Nicoll
2023-08-22 17:01:15 +02:00

View File

@@ -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");
}
});
}