mirror of https://github.com/dapr/dotnet-sdk.git
Get the integration tests to calm down (#195)
Removes console spew when running the integration tests at the command line Fixes: #193
This commit is contained in:
parent
f5cd830cc2
commit
793c0a4a36
|
|
@ -9,6 +9,7 @@ namespace Dapr.AspNetCore.IntegrationTest
|
|||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
public class AppWebApplicationFactory : WebApplicationFactory<Startup>
|
||||
{
|
||||
|
|
@ -17,6 +18,10 @@ namespace Dapr.AspNetCore.IntegrationTest
|
|||
protected override IHostBuilder CreateHostBuilder()
|
||||
{
|
||||
var builder = base.CreateHostBuilder();
|
||||
builder.ConfigureLogging(b =>
|
||||
{
|
||||
b.SetMinimumLevel(LogLevel.None);
|
||||
});
|
||||
return builder.ConfigureServices((context, services) =>
|
||||
{
|
||||
services.AddSingleton<StateClient>(this.StateClient);
|
||||
|
|
|
|||
Loading…
Reference in New Issue