File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
package org .hibernate .reactive ;
7
7
8
8
import io .smallrye .mutiny .Uni ;
9
+ import io .vertx .core .Vertx ;
10
+ import io .vertx .core .VertxOptions ;
9
11
import io .vertx .ext .unit .Async ;
10
12
import io .vertx .ext .unit .TestContext ;
11
13
import io .vertx .ext .unit .junit .RunTestOnContext ;
34
36
import org .junit .runner .RunWith ;
35
37
36
38
import java .util .concurrent .CompletionStage ;
39
+ import java .util .concurrent .TimeUnit ;
37
40
38
41
import static org .hibernate .reactive .containers .DatabaseConfiguration .dbType ;
39
42
@@ -57,7 +60,14 @@ public abstract class BaseReactiveTest {
57
60
public Timeout rule = Timeout .seconds ( 5 * 60 );
58
61
59
62
@ 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
+
61
71
62
72
private AutoCloseable session ;
63
73
private ReactiveConnection connection ;
You can’t perform that action at this time.
0 commit comments