bitovi / testee-client

Testee client adapters for QUnit, Jasmine and Mocha
https://www.npmjs.com/package/testee-client
MIT License
1 stars 1 forks source link

Fix infinite errors logged in Chrome for unhandled feathers error #44

Closed bmomberger-bitovi closed 6 years ago

bmomberger-bitovi commented 6 years ago

Letting the promise for the Feathers service be unhandled in the reject case led to an infinite loop of:

For some reason only Chrome seemed to be affected by this, but it was causing 100% CPU usage for some unhandled errors. This is a simple fix to address the problem, by ensuring that the pipeline queue for api calls always resolves even when the api call itself rejects.