Open ashrafxcoder opened 1 year ago
Hi @ashrafxcoder, The issue you linked to was fixed some time ago, but the error stack looks similar so it's likely something else is causing the test to thread hop.
Are you able to reproduce this in a project that you can share so that I can investigate?
This is a bit complicated to replicate without the whole test project. As I have mentioned, this is only failing when run in docker. Running outside docker is fine. I will post the solution here if I could replicate it in isolation from our project in docker.
I've started seeing errors with all my integration tests in docker and devops pipelines and the error was only saying NullReference exception, I thought may be something wrong with the dependency injection but that was all working. Only the tests with
@retry
attributes were failing and after removing the attribute all are passing now.I got a hint of this problem by googling which took me to this issue: Flickering test: NullReferenceException. Any idea why my tests are failing. I can see @JoshKeegan mentioned that it has been fixed. It may be something else but it is coming from
xRetry
and I can't see it why.Exception message:
My csproj file looks like this:
Dependencies registration looks like this: