[Avalonia.Headless.NUnit] async
SetUp/TearDown methods block tests forever
#18304
Labels
async
SetUp/TearDown methods block tests forever
#18304
Describe the bug
When attempting to do some async stuff in my test's
SetUp
, I noticed that the tests continuously timed out. After some investigation, I'm pretty sure this is because of this line (or one of the nearby lines) where the NUnit project uses Reflection to mess with the before/after test tasks but doesn't account for the possibility of async versions of these tasks (unlike the tests themselves).To Reproduce
Add the following code before this line:
And then run any of the threading tests.
Expected behavior
The SetUp/TearDown should run successfully and not block the thread indefinitely.
Avalonia version
master
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: