Why is this expectation being retired? #4409
Unanswered
sid-rotor
asked this question in
Community Help
Replies: 1 comment
-
Ah of course I think about this right after I post. It is because the call to either f2() advances the DAG created by the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following test
Now I'd expect this test to fail. Except, I'd expect it to fail because
mock->f2()
andmock2->f2()
don't have a corresponding available expectation since the EXPECT_CALLs forf2()
areAfter(e2)
. However, this is not the error message I get, instead I see the following:So for some reason, not only are the actions for the
f2()
calls succeeding, for some reason themock2->f1()
calls are not succeeding. Why is the expectation onmock2->f1()
retired, and why are the expectations for bothf2()
calls being met? Apologizes if there is a relevant discussion already.Thanks for any help or suggestions.
Beta Was this translation helpful? Give feedback.
All reactions