Tests that validate mock calls fail randomly #603
Unanswered
RaphaelMarcouxCTRL
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You might be doing the right thing, it depends. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we have a few tests that seem to fail randomly when executing in our azure devops pipeline.
From what I have observed, it looks like it could be linked to Checking for Received calls on mocks inside a WaitForAssertion() call.
(using NSubstitute)
The tests are of the following format :
Is it the right way to do this?
Could it be that making an assertion on a mock instead of the component itself is not how it's supposed to be used?
Beta Was this translation helpful? Give feedback.
All reactions