Open
Description
tests/Elastic.OpenTelemetry.Tests/Diagnostics/LoggingTests.cs is sometimes failing with:
[xUnit.net 00:00:00.94] Elastic.OpenTelemetry.Tests.LoggingTests.LoggingPreamble_IsSkipped_WhenReusingSharedComponents [FAIL]
⚡️ FAIL Elastic.OpenTelemetry.Tests.LoggingTests.LoggingPreamble_IsSkipped_WhenReusingSharedComponents
Error: System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
Failed Elastic.OpenTelemetry.Tests.LoggingTests.LoggingPreamble_IsSkipped_WhenReusingSharedComponents [17 ms]
Error Message:
System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
Stack Trace:
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Elastic.OpenTelemetry.Tests.LoggingTests.LoggingPreamble_IsSkipped_WhenReusingSharedComponents() in /home/runner/work/elastic-otel-dotnet/elastic-otel-dotnet/tests/Elastic.OpenTelemetry.Tests/Diagnostics/LoggingTests.cs:line 58
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Standard Output Messages: