From 7e92c295150e4d96ebbbfe9a579cc0c8a2f5ec89 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 30 Sep 2021 12:58:55 +0200 Subject: [PATCH] Fix test creating BootstrapContextImpl twice --- .../testing/orm/junit/BaseSessionFactoryFunctionalTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java b/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java index 9642c8247a..4771cf8d89 100644 --- a/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java +++ b/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java @@ -105,7 +105,7 @@ public abstract class BaseSessionFactoryFunctionalTest MetadataBuilder metadataBuilder = metadataSources.getMetadataBuilder(); applyMetadataBuilder( metadataBuilder ); applyMetadataSources( metadataSources ); - final MetadataImplementor metadata = (MetadataImplementor) metadataSources.buildMetadata(); + final MetadataImplementor metadata = (MetadataImplementor) metadataBuilder.build(); if ( !overrideCacheStrategy() || getCacheConcurrencyStrategy() == null ) { return metadata; }