File tree 1 file changed +2
-3
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -146,14 +146,13 @@ private void testTemporaryIdTablesCreationAndDropping(
146
146
int expectedTempTablesDropped ,
147
147
VertxTestContext context ) {
148
148
test ( context , setupSessionFactory ( configure )
149
- .thenCompose ( v -> getSessionFactory (). withSession ( s -> {
149
+ .thenAccept ( v -> {
150
150
dialect [0 ] = getDialect ();
151
151
assertThat ( commandsCount ( dialect [0 ].getTemporaryTableCreateCommand () ) )
152
152
.as ( "Unexpected number of temporary tables for ids CREATED" )
153
153
.isEqualTo ( expectedTempTablesCreated );
154
154
sqlStatementTracker .clear ();
155
- return voidFuture ();
156
- } ) )
155
+ } )
157
156
// to ensure the factory is always closed even in case of exceptions
158
157
.handle ( CompletionStages ::handle )
159
158
.thenCompose ( this ::closeFactory )
You can’t perform that action at this time.
0 commit comments