add the event to the assertion list before writing the response
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
9bf6229e01
commit
12e6af1ba3
|
@ -213,8 +213,8 @@ public class ServletRequestListenerTest
|
||||||
contextHandler.setErrorHandler((request, response, callback) ->
|
contextHandler.setErrorHandler((request, response, callback) ->
|
||||||
{
|
{
|
||||||
response.setStatus(500);
|
response.setStatus(500);
|
||||||
response.write(true, BufferUtil.toBuffer("error handled"), callback);
|
|
||||||
_events.add("errorHandler");
|
_events.add("errorHandler");
|
||||||
|
response.write(true, BufferUtil.toBuffer("error handled"), callback);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue