Closed ghost closed 4 years ago
@stephentoub this is your test. Is CoreRT missing something?
Is CoreRT missing something?
The test and the associated library code looks correct to me. I don't see how it could fail on a correctly functioning runtime. The test is deterministic. It calls ReadAsync (https://github.com/dotnet/corefx/blob/c40b68559e52eccd68b6616ea7a023c1c8f4361e/src/System.Threading.Channels/src/System/Threading/Channels/ChannelReader.cs#L37), which calls TryRead (https://github.com/dotnet/corefx/blob/c40b68559e52eccd68b6616ea7a023c1c8f4361e/src/System.Threading.Channels/tests/ChannelTests.cs#L201), which throws an exception that's caught and returned synchronously from the ReadAsync invocation (https://github.com/dotnet/corefx/blob/c40b68559e52eccd68b6616ea7a023c1c8f4361e/src/System.Threading.Channels/src/System/Threading/Channels/ChannelReader.cs#L53). That task was created with an exception, but the assert that's failing is saying it was instead completed successfully (https://github.com/dotnet/corefx/blob/c40b68559e52eccd68b6616ea7a023c1c8f4361e/src/System.Threading.Channels/tests/ChannelTests.cs#L134).
@MichalStrehovsky
I am closing this one as we are not currently running uap tests on corefx and this is clearly not a library issue. we can reopen if the test continue to fail when enabling uap back.
Opened on behalf of @Sunny-pu
The test
System.Threading.Channels.Tests.ChannelTests/DefaultReadAsync_CatchesTryWriteExceptions
has failed.Assert.Equal() Failure\r Expected: Faulted\r Actual: RanToCompletion
Build : Master - 20171113.01 (UWP ILC Tests) Failing configurations: