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

@@ -153,6 +153,7 @@ namespace Umbraco.Cms.Tests.Integration.TestServerTest
ConfigureServices(services);
ConfigureTestServices(services);
services.AddUnique(CreateLoggerFactory());
if (!TestOptions.Boot)
{
@@ -184,7 +185,6 @@ namespace Umbraco.Cms.Tests.Integration.TestServerTest
protected void ConfigureServices(IServiceCollection services)
{
services.AddUnique(CreateLoggerFactory());
services.AddTransient<TestUmbracoDatabaseFactoryProvider>();
Core.Hosting.IHostingEnvironment hostingEnvironment = TestHelper.GetHostingEnvironment();