Skip to content

Commit f929ddb

Browse files
committed
[#487] Increase Vert.x time out for tests
This way we can debug
1 parent 29733eb commit f929ddb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
package org.hibernate.reactive;
77

88
import io.smallrye.mutiny.Uni;
9+
import io.vertx.core.Vertx;
10+
import io.vertx.core.VertxOptions;
911
import io.vertx.ext.unit.Async;
1012
import io.vertx.ext.unit.TestContext;
1113
import io.vertx.ext.unit.junit.RunTestOnContext;
@@ -34,6 +36,7 @@
3436
import org.junit.runner.RunWith;
3537

3638
import java.util.concurrent.CompletionStage;
39+
import java.util.concurrent.TimeUnit;
3740

3841
import static org.hibernate.reactive.containers.DatabaseConfiguration.dbType;
3942

@@ -57,7 +60,14 @@ public abstract class BaseReactiveTest {
5760
public Timeout rule = Timeout.seconds( 5 * 60 );
5861

5962
@Rule
60-
public RunTestOnContext vertxContextRule = new RunTestOnContext();
63+
public RunTestOnContext vertxContextRule = new RunTestOnContext( () -> {
64+
VertxOptions options = new VertxOptions();
65+
options.setBlockedThreadCheckInterval( 5 );
66+
options.setBlockedThreadCheckIntervalUnit( TimeUnit.MINUTES );
67+
Vertx vertx = Vertx.vertx( options );
68+
return vertx;
69+
} );
70+
6171

6272
private AutoCloseable session;
6373
private ReactiveConnection connection;

0 commit comments

Comments
 (0)