Skip to content

Commit 2a1b40b

Browse files
blafondDavideD
authored andcommitted
Remove cleanDb() override and fixed error
Replaced the Set with a List because entity deletions must happen in the specified order
1 parent 6d925fb commit 2a1b40b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/issue/JoinedSubclassInheritanceWithManyToOneTest.java

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

88
import java.util.Collection;
9+
import java.util.List;
910
import java.util.Objects;
10-
import java.util.Set;
11-
import java.util.concurrent.CompletionStage;
1211

1312
import org.hibernate.reactive.BaseReactiveTest;
1413

@@ -28,22 +27,14 @@
2827
import static java.util.concurrent.TimeUnit.MINUTES;
2928
import static org.assertj.core.api.Assertions.assertThat;
3029
import static org.assertj.core.api.Assertions.atIndex;
31-
import static org.hibernate.reactive.util.impl.CompletionStages.voidFuture;
3230

3331
@Timeout(value = 10, timeUnit = MINUTES)
3432

3533
public class JoinedSubclassInheritanceWithManyToOneTest extends BaseReactiveTest {
3634

3735
@Override
3836
protected Collection<Class<?>> annotatedEntities() {
39-
return Set.of( ItemInstance.class, ClothingItemInstance.class, ClothingItem.class, Item.class );
40-
}
41-
42-
@Override
43-
protected CompletionStage<Void> cleanDb() {
44-
// Cleaning the db after the test fails on CI sometimes.
45-
// In this particular case is not necessary (there is only one test).
46-
return voidFuture();
37+
return List.of( ItemInstance.class, ClothingItemInstance.class, ClothingItem.class, Item.class );
4738
}
4839

4940
/**

0 commit comments

Comments
 (0)