You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I narrowed down these tests to aborting in a Koa app. This happened
because:
1. Koa listens for the error event on the HTTP stream itself, and
re-emits it on the app's own event emitter.
2. If there is no listener for an app error, Koa will deviate from
the node default of crashing, and will instead log the error.
3. This particular error originates from within the HTTP stream,
causing Koa to log the error message.
I fixed this by actually _expecting_ one error to be emit from the
app, adding an assertion to test this.
0 commit comments