Skip to content

Commit 1da3c27

Browse files
authored
re-adding project reference (#1049)
1 parent 8942aba commit 1da3c27

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

src/DotNetWorker.ApplicationInsights/DotNetWorker.ApplicationInsights.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
<Import Project="..\..\build\Common.props" />
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Core" Version="1.7.0-preview1" />
1817
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
1918
</ItemGroup>
2019

20+
<ItemGroup>
21+
<ProjectReference Include="..\DotNetWorker.Core\DotNetWorker.Core.csproj" />
22+
</ItemGroup>
23+
2124
</Project>

test/DotNetWorkerTests/ApplicationInsights/ApplicationInsightsConfigurationTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ public void AddingServiceAndLogger_OnlyAddsServicesOnce()
200200

201201
// Ensure that our Initializer and Module are added alongside the defaults
202202
Assert.Collection(initializers,
203-
t => Assert.Equal(typeof(FunctionsTelemetryInitializer), t.ImplementationType),
204-
t => Assert.Equal(typeof(AzureWebAppRoleEnvironmentTelemetryInitializer), t.ImplementationType),
205-
t => Assert.Equal(typeof(Microsoft.ApplicationInsights.WorkerService.TelemetryInitializers.DomainNameRoleInstanceTelemetryInitializer), t.ImplementationType),
206-
t => Assert.Equal(typeof(HttpDependenciesParsingTelemetryInitializer), t.ImplementationType),
207-
t => Assert.Equal(typeof(ComponentVersionTelemetryInitializer), t.ImplementationType));
203+
t => Assert.Equal(typeof(FunctionsTelemetryInitializer), t.ImplementationType),
204+
t => Assert.Equal(typeof(AzureWebAppRoleEnvironmentTelemetryInitializer), t.ImplementationType),
205+
t => Assert.Equal(typeof(Microsoft.ApplicationInsights.WorkerService.TelemetryInitializers.DomainNameRoleInstanceTelemetryInitializer), t.ImplementationType),
206+
t => Assert.Equal(typeof(HttpDependenciesParsingTelemetryInitializer), t.ImplementationType),
207+
t => Assert.Equal(typeof(ComponentVersionTelemetryInitializer), t.ImplementationType));
208208

209209
Assert.Collection(modules,
210210
t => Assert.Equal(typeof(FunctionsTelemetryModule), t.ImplementationType),

test/DotNetWorkerTests/ApplicationInsights/EndToEndTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public EndToEndTests()
3636
.AddApplicationInsights(appInsightsOptions =>
3737
{
3838
appInsightsOptions.InstrumentationKey = "abc";
39+
40+
// keep things more deterministic for tests
3941
appInsightsOptions.EnableAdaptiveSampling = false;
42+
appInsightsOptions.EnableDependencyTrackingTelemetryModule = false;
4043
})
4144
.AddApplicationInsightsLogger();
4245

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
4+
using Xunit;
5+
6+
[assembly: CollectionBehavior(DisableTestParallelization = true)]

0 commit comments

Comments
 (0)