We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3542ce0 commit 15ffb8fCopy full SHA for 15ffb8f
src/libraries/System.Threading.Tasks/tests/Task/AsyncEnumerableToBlockingEnumerableTests.cs
@@ -139,7 +139,7 @@ public static void AsyncEnumerableWithCancellation()
139
using var cts = new CancellationTokenSource(millisecondsDelay: 1000);
140
IEnumerable<string> blockingEnumerable = source.ToBlockingEnumerable(cts.Token);
141
142
- Assert.Throws<OperationCanceledException>(() => blockingEnumerable.Count());
+ Assert.Throws<TaskCanceledException>(() => blockingEnumerable.Count());
143
144
Assert.Equal(1, source.TotalGetAsyncEnumeratorCalls);
145
Assert.Equal(1, source.TotalDisposeAsyncCalls);
0 commit comments