Skip to content

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Nov 7, 2025

The test was using the try catch pattern that we now detect by analyzer. It won't fail the test when there is no exception thrown.

Luckily this is error in the test code and not in the tested code.

There are producers A and B, which produce messages which the other reacts to, so we create a consumer producer loop that never ends.

BUT the producers were using the same Uid, and so we thought that both A and B are the same producer and never put the values to the pipe, so no loop ever happened.

https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/Messages/ConsumingEnumerableConsumerDataProcessor.cs#L55-L58

Fix #6892

@Youssef1313 Youssef1313 enabled auto-merge (squash) November 7, 2025 11:15
@Youssef1313
Copy link
Member

Merged main to resolve a conflict

@Youssef1313 Youssef1313 disabled auto-merge November 7, 2025 14:20
@Youssef1313 Youssef1313 merged commit f3bf37a into main Nov 7, 2025
6 of 8 checks passed
@Youssef1313 Youssef1313 deleted the fix-loop-test branch November 7, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DrainDataAsync_Loop_ShouldFail is failing

4 participants