Skip to content

Commit dad7a56

Browse files
committed
Skip EmptyCompositeCollectionKeyTest for Db2
Vert.x SQL client throws: ``` java.lang.IllegalStateException: Needed to have 6 in buffer but only had 0. In JDBC we would normally block here but need to find a non-blocking solution ```
1 parent 2fec319 commit dad7a56

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,24 @@
1818
import org.hibernate.Hibernate;
1919
import org.hibernate.cfg.Configuration;
2020
import org.hibernate.cfg.Environment;
21+
import org.hibernate.reactive.containers.DatabaseConfiguration;
22+
import org.hibernate.reactive.testing.DatabaseSelectionRule;
2123

24+
import org.junit.Rule;
2225
import org.junit.Test;
2326

2427
import io.vertx.ext.unit.TestContext;
2528

29+
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
30+
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;
31+
2632

2733
public class EmptyCompositeCollectionKeyTest extends BaseReactiveTest {
2834

35+
// Db2: Throws java.lang.IllegalStateException: Needed to have 6 in buffer but only had 0. In JDBC we would normally block here but need to find a non-blocking solution
36+
@Rule
37+
public final DatabaseSelectionRule skip = skipTestsFor( DB2 );
38+
2939
@Override
3040
protected Collection<Class<?>> annotatedEntities() {
3141
return List.of( Family.class );

0 commit comments

Comments
 (0)