iilyak opened a new pull request #2122: Call :meck.unload() automatically after 
every test
URL: https://github.com/apache/couchdb/pull/2122
 
 
   ## Overview
   
   We had a number  of problems with using meck and eunit. In fact these 
problems were one of the driving factors to switch to exunit. ExUnit has a 
reliable teardown behaviour. Which allows as to do a proper cleanup after meck. 
This PR adds an unconditional call to :meck.unload() into `on_exit` callback. 
This would guaranty that we wouldn't have leftover mocked modules in subsequent 
tests.
   
   ## Testing recommendations
   
   Hard to test. 
   
   ## Related Issues or Pull Requests
   
   - This PR is a replacement for https://github.com/apache/couchdb/pull/2121
   
   ## Checklist
   
   - [ ] Code is written and works correctly
   - [ ] Changes are covered by tests
   - [ ] Any new configurable parameters are documented in 
`rel/overlay/etc/default.ini`
   - [ ] A PR for documentation changes has been made in 
https://github.com/apache/couchdb-documentation
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to