Skip to content

Fix hangdump not showing tests in progress#3992

Merged
Evangelink merged 2 commits into
rel/3.6from
fix-hangdump-not-showing-tests
Nov 4, 2024
Merged

Fix hangdump not showing tests in progress#3992
Evangelink merged 2 commits into
rel/3.6from
fix-hangdump-not-showing-tests

Conversation

@nohwnd
Copy link
Copy Markdown
Member

@nohwnd nohwnd commented Nov 4, 2024

Fixes cases where method names are same in multiple classes (e.g. TestMethod1) and are not visible among the hanging tests.

The bug happens when Class1.TestMethod1 and Class2.TestMethod1 run in parallel, and one of them is not hanging. The first one to complete will remove the entry from tests in progress.

Using UID reduces the chance of this happening significantly, and will also correctly show that two tests with name TestMethod1 were running.

Copy link
Copy Markdown
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add some test? Acceptance is probably the easiest.

Comment thread src/Platform/Microsoft.Testing.Extensions.HangDump/HangDumpActivityIndicator.cs Outdated
@Evangelink Evangelink merged commit 6594ac5 into rel/3.6 Nov 4, 2024
@Evangelink Evangelink deleted the fix-hangdump-not-showing-tests branch November 4, 2024 13:12
@Evangelink
Copy link
Copy Markdown
Member

Please forward port this.

@nohwnd
Copy link
Copy Markdown
Member Author

nohwnd commented Nov 4, 2024

#3999

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.

2 participants