Use IllegalStateException in ReactiveTestTransactionManager.doCommit()

See gh-30107
This commit is contained in:
Johnny Lim 2023-03-12 20:24:01 +09:00 committed by Stephane Nicoll
parent 542d0ef0b4
commit 112f755e17
1 changed files with 1 additions and 1 deletions

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