diff --git a/hibernate-core/src/test/java/org/hibernate/test/cfg/BatchVersionedDataConfigTest.java b/hibernate-core/src/test/java/org/hibernate/test/cfg/BatchVersionedDataConfigTest.java index b16759537c..74ba1cb118 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/cfg/BatchVersionedDataConfigTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/cfg/BatchVersionedDataConfigTest.java @@ -54,6 +54,12 @@ public class BatchVersionedDataConfigTest extends BaseUnitTestCase { @Before public void setUp() { cfg = new Configuration(); + + // HHH-10290 ignore environment property hibernate.jdbc.batch_versioned_data + if (cfg.getProperties().getProperty(AvailableSettings.BATCH_VERSIONED_DATA) != null) { + cfg.getProperties().remove(AvailableSettings.BATCH_VERSIONED_DATA); + cfg.getStandardServiceRegistryBuilder().getSettings().remove(AvailableSettings.BATCH_VERSIONED_DATA); + } } @After