Fix test creating BootstrapContextImpl twice

This commit is contained in:
Andrea Boriero 2021-09-30 12:58:55 +02:00 committed by Christian Beikov
parent 95486ce5b1
commit 7e92c29515
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public abstract class BaseSessionFactoryFunctionalTest
MetadataBuilder metadataBuilder = metadataSources.getMetadataBuilder(); MetadataBuilder metadataBuilder = metadataSources.getMetadataBuilder();
applyMetadataBuilder( metadataBuilder ); applyMetadataBuilder( metadataBuilder );
applyMetadataSources( metadataSources ); applyMetadataSources( metadataSources );
final MetadataImplementor metadata = (MetadataImplementor) metadataSources.buildMetadata(); final MetadataImplementor metadata = (MetadataImplementor) metadataBuilder.build();
if ( !overrideCacheStrategy() || getCacheConcurrencyStrategy() == null ) { if ( !overrideCacheStrategy() || getCacheConcurrencyStrategy() == null ) {
return metadata; return metadata;
} }