-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Luassert make sure to revert function if it is already mocked.
This commit overwrites luassert stub function to make sure that before try to mock any function verifies that is not mocked, and if it is, revert to the original one. This prevents scenarios where multiple stubs are in one test and are leaked to other test and that scenario is hard to debug/notice. Signed-off-by: Eloy Coto <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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