Skip to content

Commit 4d7f24a

Browse files
committed
HSEARCH-4930 Don't use the default purge operation for the mass indexer multitenancy test
1 parent 50eb083 commit 4d7f24a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integrationtest/mapper/orm-realbackend/src/test/java/org/hibernate/search/integrationtest/mapper/orm/realbackend/multitenant/RealBackendDatabaseMultitenancyIT.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ private <T> void checkMultitenancy(SessionFactory sessionFactory, BiConsumer<Ses
211211
scope.schemaManager().dropAndCreate();
212212

213213
scope.massIndexer( asSet( tenant1, tenant2, tenant3 ) )
214+
// as we've dropped the schema just above,
215+
// we don't want any of these clean-up operations to be applied:
216+
.dropAndCreateSchemaOnStart( false )
217+
.purgeAllOnStart( false )
214218
.startAndWait();
215219

216220
with( sessionFactory, tenant1 ).runInTransaction( session -> setupHelper.assertions()

0 commit comments

Comments
 (0)