Skip to content

Commit

Permalink
add the event to the assertion list before writing the response
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Nov 15, 2023
1 parent 9bf6229 commit 12e6af1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ public void testErrorNonDispatched() throws Exception
contextHandler.setErrorHandler((request, response, callback) ->
{
response.setStatus(500);
response.write(true, BufferUtil.toBuffer("error handled"), callback);
_events.add("errorHandler");
response.write(true, BufferUtil.toBuffer("error handled"), callback);
return true;
});

Expand Down

0 comments on commit 12e6af1

Please sign in to comment.