add the event to the assertion list before writing the response

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2023-11-13 09:50:47 +01:00
parent 9bf6229e01
commit 12e6af1ba3
1 changed files with 1 additions and 1 deletions

View File

@ -213,8 +213,8 @@ public class ServletRequestListenerTest
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;
});