Skip to content

[MT][browser] SimultaneousStopBreakTests fails #91579

Description

@ilonatommy

Failing after enabling all MT library tests (#91536).

[FAIL] System.Threading.Tasks.Tests.ParallelLoopResultTests.SimultaneousStopBreakTests
 System.InvalidOperationException : Break was called after Stop was called.
    at System.Threading.Tasks.ParallelLoopState.Break[Int32](Int32 iteration, ParallelLoopStateFlags`1 pflags)
    at System.Threading.Tasks.ParallelLoopState`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InternalBreak()
    at System.Threading.Tasks.ParallelLoopState.Break()
    at System.Threading.Tasks.Tests.ParallelLoopResultTests.<>c.<SimultaneousStopBreakTests>b__14_0(Int32 i, ParallelLoopState ps)
    at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2[[System.Object, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
 --- End of stack trace from previous location ---
    at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2[[System.Object, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
    at System.Threading.Tasks.TaskReplicator.Run[RangeWorker](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
    at System.Threading.Tasks.Parallel.ForWorker[Object,Int32](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
    at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`2 body)
    at System.Threading.Tasks.Tests.ParallelLoopResultTests.ForPLRTest(Action`2 body, ParallelOptions parallelOptions, String desc, Boolean excExpected, Boolean shouldComplete, Boolean shouldStop, Boolean shouldBreak, Boolean shouldCancel)
    at System.Threading.Tasks.Tests.ParallelLoopResultTests.ForPLRTest(Action`2 body, String desc, Boolean excExpected, Boolean shouldComplete, Boolean shouldStop, Boolean shouldBreak)
    at System.Threading.Tasks.Tests.ParallelLoopResultTests.SimultaneousStopBreakTests()
    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions