| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The original test uses a variable to explicitly count how many times the callback is invoked. This patch uses `common.mustCall` to track if the callback is called or not. This would make the test more robust as we don't explicitly hardcode the number of times to be called.
|
LGTM if the CI is happy. |
Sorry, something went wrong.
|
@cjihrig Thanks :-) Can you please trigger a CI run? |
Sorry, something went wrong.
Sorry, something went wrong.
|
@cjihrig Looks like the failures are not because of this change. This test passes in all the environments :-) |
Sorry, something went wrong.
The original test uses a variable to explicitly count how many times the callback is invoked. This patch uses common.mustCall() to track if the callback is called or not. This makes the test more robust, as we don't explicitly hardcode the number of times to be called. PR-URL: #2122 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
The original test uses a variable to explicitly count how many times the callback is invoked. This patch uses common.mustCall() to track if the callback is called or not. This makes the test more robust, as we don't explicitly hardcode the number of times to be called. PR-URL: nodejs#2122 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
| Back | FazBrowse Home | New Git URL |
The original test uses a variable to explicitly count how many times
the callback is invoked. This patch uses common.mustCall to track
if the callback is called or not. This would make the test more robust
as we don't explicitly hardcode the number of times to be called.
cc @cjihrig