dotnet / reactive

The Reactive Extensions for .NET
http://reactivex.io
MIT License
6.73k stars 751 forks source link

ToAsyncEnumerable_Observable_Cancel_InFlight sometimes fails spuriously #2139

Open idg10 opened 4 months ago

idg10 commented 4 months ago

We occasionally get failures in the ToAsyncEnumerable_Observable_Cancel_InFlight test. When we rerun the build it typically succeeds.

It's possible that this is because there are two different phases in which cancellation could occur—the initial await when we acquire the enumerator, and then the part the test inspects, the MoveNextAsync. Or it's also possible that it's related to the fact that we're using ValueTask in a slightly unorthodox way. Or it could be something else. We need to investigate.