Merge pull request #30107 from izeye
* pr/30107: Use IllegalStateException in ReactiveTestTransactionManager.doCommit() Closes gh-30107
This commit is contained in:
commit
b204f2e396
|
|
@ -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");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue