Please sign in to comment.
Fix em-http-request callback triggering
Previously, if there were other EM::Deferred callbacks registered, they might execute before WebMock's callback and raise an exception. This would prevent the WebMock callback ever running, even though there was a successful request. Overriding set_deferred_status prevents this by triggering WebMock's callbacks before running any of the EM::Deferred callbacks. Sorry, I have no idea how to test this.
- Loading branch information...
Showing with 12 additions and 10 deletions.