Dependencies not set within async tests #55
Replies: 2 comments 5 replies
-
This might be similar to #46 where the failure is actually being caused by the app host. See Testing gotchas and the issue above for more info. Sorry on my phone atm so can't test your code. |
Beta Was this translation helpful? Give feedback.
-
@nashysolutions You're linking with the
|
Beta Was this translation helpful? Give feedback.
-
When testing with the keyword async, dependencies fail to get set.
Removing the async keyword resolves the issue.
I cannot show the code with the problem but it does fail consistently.
The attached project has a basic implementation of the issue I'm having. Unfortunately, the test has started passing for me, but it definitely did fail two or three times. If it's passing for you too, then could you maybe theorise as to why this code would fail?
BugReport.zip
Beta Was this translation helpful? Give feedback.
All reactions