File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,9 @@ public class ReactiveMultitenantTest extends BaseReactiveTest {
43
43
// To check if we are using the right database we run native queries for PostgreSQL
44
44
@ Rule
45
45
public DatabaseSelectionRule selectionRule = DatabaseSelectionRule .runOnlyFor ( POSTGRESQL );
46
- private static boolean createdDatabase ;
47
46
48
47
@ Override
49
48
protected Configuration constructConfiguration () {
50
- createdDatabase = true ;
51
49
Configuration configuration = super .constructConfiguration ();
52
50
configuration .addAnnotatedClass ( GuineaPig .class );
53
51
configuration .setProperty ( Settings .MULTI_TENANT , MultiTenancyStrategy .DATABASE .name () );
@@ -104,7 +102,7 @@ public void testTenantSelection(TestContext context) {
104
102
105
103
@ AfterClass
106
104
public static void dropDatabases (TestContext context ) {
107
- if (createdDatabase ) {
105
+ if ( factoryManager . isStarted () ) {
108
106
test ( context , getSessionFactory ()
109
107
.withSession ( session -> Arrays
110
108
.stream ( values () )
You can’t perform that action at this time.
0 commit comments