-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The double mocking solution we have now of mocking send and get_adapter is a bit unusual. One of the problems is that if you have a nested mock situation then send calling the last send means get_adapter is remocked again and the outer adapter ends up being the last installed. To avoid this always go to the real original send function to bypass any outer installed mockers and make sure our get_adapter function is triggered. Change-Id: I47bff5e7da98e5238bd926e22845a7ca34f21940 Closes-Bug: #1642690
- Loading branch information
1 parent
81b72f4
commit 95dffef
Showing
2 changed files
with
90 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters