Skip to content

Commit 351b69c

Browse files
committed
Try to fix dapper
1 parent a1a1cae commit 351b69c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
# Reduce logging output from tests in cibuild.
132132
Logging__LogLevel__Microsoft.Hosting.Lifetime: 'None'
133133
Logging__LogLevel__Microsoft.AspNetCore.Hosting.Diagnostics: 'None'
134+
Logging__LogLevel__Microsoft.Extensions.Hosting.Internal.Host: 'None'
134135
Logging__LogLevel__Microsoft.EntityFrameworkCore.Database.Command: 'None'
135136
Logging__LogLevel__JsonApiDotNetCore: 'None'
136137
Logging__LogLevel__DapperExample: 'None'

test/DapperTests/IntegrationTests/DapperTestContext.cs

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ private WebApplicationFactory<TodoItem> CreateFactory()
6969
{
7070
if (_testOutputHelper != null)
7171
{
72+
#if !DEBUG
73+
loggingBuilder.ClearProviders();
74+
#endif
7275
loggingBuilder.Services.AddSingleton<ILoggerProvider>(_ => new XUnitLoggerProvider(_testOutputHelper, "DapperExample."));
7376
}
7477
});

0 commit comments

Comments
 (0)