Skip to content

Commit df40571

Browse files
committed
[#2518] Add error log when existing test fails
Print the exception when there's an error in MultithreadedInsertionTest
1 parent 07af89b commit df40571

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/MultithreadedInsertionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,12 @@ public void start(Promise<Void> startPromise) {
162162
.whenComplete( (o, throwable) -> {
163163
endLatch.reached();
164164
if ( throwable != null ) {
165+
prettyOut( throwable.getMessage() );
165166
startPromise.fail( throwable );
166167
}
167168
else {
168169
if ( !initialThreadName.equals( Thread.currentThread().getName() ) ) {
170+
prettyOut( "Thread switch detected. Expecting " + initialThreadName + ", actual " + Thread.currentThread().getName() );
169171
startPromise.fail( "Thread switch detected!" );
170172
}
171173
else {

0 commit comments

Comments
 (0)