Fix flakey write lock test. (#12294)

And reduce logging noise.
This commit is contained in:
Paul Johnson
2022-04-25 08:33:03 +01:00
committed by GitHub
parent 34f6ed21d6
commit 2df6c937fd
6 changed files with 70 additions and 23 deletions

View File

@@ -84,6 +84,7 @@ namespace Umbraco.Cms.Tests.Integration.Testing
{
ConfigureServices(services);
ConfigureTestServices(services);
services.AddUnique(CreateLoggerFactory());
if (!TestOptions.Boot)
{
@@ -98,7 +99,6 @@ namespace Umbraco.Cms.Tests.Integration.Testing
protected void ConfigureServices(IServiceCollection services)
{
services.AddUnique(CreateLoggerFactory());
services.AddTransient<TestUmbracoDatabaseFactoryProvider>();
IWebHostEnvironment webHostEnvironment = TestHelper.GetWebHostEnvironment();
services.AddRequiredNetCoreServices(TestHelper, webHostEnvironment);