Search Issue Tracker
Third Party Issue
Votes
0
Found in
2020.3.39f1
2021.3.10f1
2022.1.17f1
2022.2.0b8
2023.1.0a10
Issue ID
UUM-14469
Regression
No
Test Framework Assert.Inconclusive does not work when used in Async Methods
How to reproduce:
1. Open the user-attached project “AssertInconclusiveTest”
2. Open Window → General → Test Runner
3. In the Test Runner Window click “Run All”
4. Observe the results
Expected results: All tests are Inconclusive
Actual result: The tests that are used in the Async Methods are returning either failed or succeeded result
Reproduced with: 2020.3.39f1, 2021.3.10f1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a10
Reproduced on: Windows 11 Pro
Note: In Unity versions 2023.1.0a5-2023.1.0a10 running the tests causes Unity to freeze completely
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
Exceptions thrown within a task is invisible from the Unit test actually, and if you try to rethrow it using Task.Result or Task.Wait, it will be wrapped in an AggregatedException.
However once the task has run to completion, you can rethrow it's original exception using task.GetAwaiter().GetResults() (this is how async await propagate exceptions)