-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EventCounter] Failing tests #941
Comments
@mic-max would you take a look? |
[xUnit.net 00:00:09.75] OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.PollingCounter [FAIL] |
I think the issue is surfacing due to EventCounter callback being called multiple times or not at all (before the asserts). Need to check if we can have a way around this to restrict callback to get called only once for testing purposes. @mic-max FYI |
OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.PollingCounter()
Failed OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.PollingCounter [1 s]
Error Message:
Assert.Equal() Failure
Expected: 10
Actual: 20
Stack Trace:
at OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.PollingCounter() in D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\test\OpenTelemetry.Instrumentation.EventCounters.Tests\EventCountersMetricsTests.cs:line 107
https://github.com/open-telemetry/opentelemetry-dotnet-contrib/actions/runs/4051100460/jobs/6969093480
OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.IncrementingPollingCounter()
[xUnit.net 00:00:13.82] Finished: OpenTelemetry.Instrumentation.EventCounters.Tests
Failed OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.IncrementingPollingCounter [1 s]
Error Message:
Assert.Equal() Failure
Expected: 1
Actual: 2
Stack Trace:
at OpenTelemetry.Instrumentation.EventCounters.Tests.EventCountersMetricsTests.IncrementingPollingCounter() in D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\test\OpenTelemetry.Instrumentation.EventCounters.Tests\EventCountersMetricsTests.cs:line 133
https://github.com/open-telemetry/opentelemetry-dotnet-contrib/actions/runs/4051195894/jobs/6969274662
The text was updated successfully, but these errors were encountered: