You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the obvious fix to use AppDomain.CurrentDomain.FriendlyName on netcoreapp2.0., but it leads to another failure
Failed MethodsAreImplementedConsistentlyWithTheirAttributes
Error Message:
Test method Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation.WebEventSourceTest.MethodsAreImplementedConsistentlyWithTheirAttributes threw exception:
System.Exception: BackoffDisabled is implemented incorrectly: Application Name. expected: 'testhost', actual: '' ---> System.Exception: Application Name. expected: 'testhost', actual: ''
Stack Trace:
at Microsoft.ApplicationInsights.TestFramework.EventSourceTest.AssertEqual[T](T expected, T actual, String message) in E:\A\_work\228\s\Test\TestFramework\Shared\EventSourceTest.cs:line 115
at Microsoft.ApplicationInsights.TestFramework.EventSourceTest.VerifyMethodImplementation(EventSource eventSource, MethodInfo eventMethod) in E:\A\_work\228\s\Test\TestFramework\Shared\EventSourceTest.cs:line 37
--- End of inner exception stack trace ---
at Microsoft.ApplicationInsights.TestFramework.EventSourceTest.VerifyMethodImplementation(EventSource eventSource, MethodInfo eventMethod) in E:\A\_work\228\s\Test\TestFramework\Shared\EventSourceTest.cs:line 41
at Microsoft.ApplicationInsights.TestFramework.EventSourceTest.MethodsAreImplementedConsistentlyWithTheirAttributes(EventSource eventSource) in E:\A\_work\228\s\Test\TestFramework\Shared\EventSourceTest.cs:line 16
which seems to be caused by some race-condition, or some other unexpected behavior that is fixed with something like 0a2c4e0#diff-38c3bb17d4df474170d2d57acf211a18R13 but the root cause is unknown.
This issue does not reproduce locally - only on the build machine
The text was updated successfully, but these errors were encountered:
lmolkova
changed the title
MethodsAreImplementedConsistentlyWithTheirAttributes failing on .netcoreapp2.0
MethodsAreImplementedConsistentlyWithTheirAttributes does not test applicaiton name correctly and fails on .netcoreapp2.0
May 2, 2019
https://dev.azure.com/mseng/AppInsights/_build/results?buildId=9392652&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b
This happens because tests set
expectedApplicationName
to empty string for all .net core.the obvious fix to use
AppDomain.CurrentDomain.FriendlyName
on netcoreapp2.0., but it leads to another failurewhich seems to be caused by some race-condition, or some other unexpected behavior that is fixed with something like 0a2c4e0#diff-38c3bb17d4df474170d2d57acf211a18R13 but the root cause is unknown.
This issue does not reproduce locally - only on the build machine
The text was updated successfully, but these errors were encountered: