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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue