Fix test creating BootstrapContextImpl twice
This commit is contained in:
parent
95486ce5b1
commit
7e92c29515
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue