Skip to content

Commit 6ff2498

Browse files
committed
Extra test
1 parent c04c656 commit 6ff2498

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,12 @@ public void start(Promise<Void> startPromise) {
172172
.whenComplete( (o, throwable) -> {
173173
endLatch.reached();
174174
if ( throwable != null ) {
175+
prettyOut( throwable.getMessage() );
175176
startPromise.fail( throwable );
176177
}
177178
else {
178179
if ( !initialThreadName.equals( Thread.currentThread().getName() ) ) {
180+
prettyOut( "Thread switch detected. Expecting " + initialThreadName + ", actual " + Thread.currentThread().getName() );
179181
startPromise.fail( "Thread switch detected!" );
180182
}
181183
else {
@@ -209,10 +211,10 @@ public void stop() {
209211
}
210212

211213
/**
212-
* Trivial entity using a Sequence for Id generation
214+
* Trivial entity using default id generation
213215
*/
214216
@Entity
215-
@Table(name="Entity")
217+
@Table(name = "Entity")
216218
private static class EntityWithGeneratedId {
217219
@Id
218220
@GeneratedValue

0 commit comments

Comments
 (0)