Skip to content

Commit 1443f9a

Browse files
committed
[#487] Create Vert.x instance for tests once per class
1 parent f929ddb commit 1443f9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.hibernate.tool.schema.spi.SchemaManagementTool;
3333
import org.junit.After;
3434
import org.junit.Before;
35+
import org.junit.ClassRule;
3536
import org.junit.Rule;
3637
import org.junit.runner.RunWith;
3738

@@ -59,8 +60,8 @@ public abstract class BaseReactiveTest {
5960
@Rule
6061
public Timeout rule = Timeout.seconds( 5 * 60 );
6162

62-
@Rule
63-
public RunTestOnContext vertxContextRule = new RunTestOnContext( () -> {
63+
@ClassRule
64+
public static RunTestOnContext vertxContextRule = new RunTestOnContext( () -> {
6465
VertxOptions options = new VertxOptions();
6566
options.setBlockedThreadCheckInterval( 5 );
6667
options.setBlockedThreadCheckIntervalUnit( TimeUnit.MINUTES );

0 commit comments

Comments
 (0)