Skip to content

Commit

Permalink
Add missing "fake" config entry
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubfijalkowski committed Jan 16, 2025
1 parent daabd1f commit ce089b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)
builder
.ConfigureAppConfiguration(config =>
{
config.Add(ConnectionStringConfig);
config.Add(ConfigurationOverrides);
config.Add(ConnectionStringConfig);
})
.ConfigureServices(services =>
{
Expand Down
11 changes: 9 additions & 2 deletions test/Testing/LeanCode.IntegrationTestHelpers.Tests/TestApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ public class TestApp : LeanCodeTestFactory<App.Startup>
new("SqlServer:ConnectionStringBase", "SqlServer:ConnectionString");

protected override ConfigurationOverrides ConfigurationOverrides { get; } =
ConfigurationOverrides.LoggingOverrides(LogEventLevel.Error, false);
new(
new()
{
[IHostBuilderExtensions.MinimumLogLevelKey] = "Error",
[IHostBuilderExtensions.EnableDetailedInternalLogsKey] = "false",
["SqlServer:ConnectionStringBase"] = "",
}
);

protected override IEnumerable<Assembly> GetTestAssemblies()
{
Expand All @@ -35,8 +42,8 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)
builder
.ConfigureAppConfiguration(config =>
{
config.Add(ConnectionStringConfig);
config.Add(ConfigurationOverrides);
config.Add(ConnectionStringConfig);
})
.ConfigureServices(services =>
{
Expand Down

0 comments on commit ce089b8

Please sign in to comment.