use immoery channel for func tests to increase stability
This commit is contained in:
Родитель
ef79495dbc
Коммит
32785040ea
|
@ -21,6 +21,7 @@
|
|||
|
||||
var builder = new ConfigurationBuilder();
|
||||
builder.AddApplicationInsightsSettings(instrumentationKey: InProcessServer.IKey, endpointAddress: endpointAddress.ConnectionString, developerMode: true);
|
||||
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel());
|
||||
services.AddApplicationInsightsTelemetry(builder.Build());
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace MVCFramework20.FunctionalTests
|
|||
applicationInsightsOptions.EndpointAddress = endpointAddress.ConnectionString;
|
||||
applicationInsightsOptions.InstrumentationKey = InProcessServer.IKey;
|
||||
|
||||
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel());
|
||||
services.AddApplicationInsightsTelemetry(applicationInsightsOptions);
|
||||
services.AddMvc();
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Hosting;
|
|||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using FunctionalTestUtils;
|
||||
|
||||
using Microsoft.ApplicationInsights.Channel;
|
||||
|
||||
namespace WebApi20.FunctionalTests
|
||||
{
|
||||
|
@ -24,6 +24,7 @@ namespace WebApi20.FunctionalTests
|
|||
|
||||
var builder = new ConfigurationBuilder();
|
||||
builder.AddApplicationInsightsSettings(instrumentationKey: InProcessServer.IKey, endpointAddress: endpointAddress.ConnectionString, developerMode: true);
|
||||
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel());
|
||||
services.AddApplicationInsightsTelemetry(builder.Build());
|
||||
|
||||
services.AddMvc();
|
||||
|
|
Загрузка…
Ссылка в новой задаче