Skip to content

Commit 1975882

Browse files
committed
[#2055] Remove unecessary .withSession from test
1 parent ebf17e1 commit 1975882

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema/TemporaryIdTableStrategyTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,13 @@ private void testTemporaryIdTablesCreationAndDropping(
146146
int expectedTempTablesDropped,
147147
VertxTestContext context) {
148148
test( context, setupSessionFactory( configure )
149-
.thenCompose( v -> getSessionFactory().withSession( s -> {
149+
.thenAccept( v -> {
150150
dialect[0] = getDialect();
151151
assertThat( commandsCount( dialect[0].getTemporaryTableCreateCommand() ) )
152152
.as( "Unexpected number of temporary tables for ids CREATED" )
153153
.isEqualTo( expectedTempTablesCreated );
154154
sqlStatementTracker.clear();
155-
return voidFuture();
156-
} ) )
155+
} )
157156
// to ensure the factory is always closed even in case of exceptions
158157
.handle( CompletionStages::handle )
159158
.thenCompose( this::closeFactory )

0 commit comments

Comments
 (0)