forked from kittinunf/fuel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Jackson extension functions and their tests (kittinunf#777)
* Consistent return type in extensions (kittinunf#775) Make all Jackson shorthand functions for asynchronous requests return an object of `CancellableRequest` type. * Fix tests for async Jackson extensions (kittinunf#776) Assertions in the tests were failing silently due to the fact that the callback was executed asynchronously. Many tests eventually became out of date, and because of the async assertions this remained unnoticed. This change awaits on the result of each asynchronous call to ensure all assertions in the asynchronous callbacks are executed. Should an error occur, it will bubble up and hence fail the test now. This also required quite some changes in the setup procedure and assertions to bring tests back into a good shape.
- Loading branch information
Showing
2 changed files
with
148 additions
and
78 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