-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail test suite on unhandled promise rejection [API-1604] #636
Comments
I have identified two places in which we might have this problem while taking a look at the test logs for the #638. The failures were unrelated to that PR. One of them is https://github.com/hazelcast/hazelcast-nodejs-client/blob/master/src/listener/ListenerService.ts#L154.
The other one is probably here. https://github.com/hazelcast/hazelcast-nodejs-client/blob/master/src/nearcache/RepairingTask.ts#L99
|
@mdumandag that's a good finding. Thanks. I'm going to take a look at those failures once I'm back from vacation. |
Lowering the priority for this one as #686 fixed all known issues in the client code base and added an eslint rule to detect floating promises. |
Internal Jira issue: API-1604 |
In the past I faced several places where we weren't handling promise rejections properly. In future version of node, it's very likely that it will start throwing on unhandled promise rejections, so, we need to make sure that there are no such places in the library code base, as well as in the test suite. The proper way should be to log details of the rejection and stop the process with an error code.
The text was updated successfully, but these errors were encountered: