Skip to content

Commit 83e5b67

Browse files
committed
Reduce number of entries for NoVertxContextTest
This way it will also work for Oracle and it will be faster. This test was failing on CI with just one entry, so it shouldn't make much difference if we test it with 100 or 1000.
1 parent 679680f commit 83e5b67

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@
2020
import org.hibernate.reactive.mutiny.Mutiny;
2121
import org.hibernate.reactive.provider.ReactiveServiceRegistryBuilder;
2222
import org.hibernate.reactive.stage.Stage;
23-
import org.hibernate.reactive.testing.DatabaseSelectionRule;
2423

2524
import org.junit.After;
2625
import org.junit.AfterClass;
2726
import org.junit.BeforeClass;
28-
import org.junit.Rule;
2927
import org.junit.Test;
3028

3129
import io.smallrye.mutiny.Uni;
3230

3331
import static org.assertj.core.api.Assertions.assertThat;
34-
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.ORACLE;
35-
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;
3632

3733
/**
3834
* CompletionStage API doesn't guarantee that composing stages will be on the same thread.
@@ -45,14 +41,11 @@
4541
*/
4642
public class NoVertxContextTest {
4743

48-
@Rule
49-
public DatabaseSelectionRule dbRule = skipTestsFor( ORACLE );
50-
5144
/**
5245
* The number of entities to persist.
5346
* Faster machines might need a higher number for this test to fail.
5447
*/
55-
private static final int ENTRIES_NUM = 1000;
48+
private static final int ENTRIES_NUM = 100;
5649

5750
private static SessionFactory sessionFactory;
5851

0 commit comments

Comments
 (0)