From 12e6af1ba31b0d5a9fa0f39dc637bd7fc42fdac0 Mon Sep 17 00:00:00 2001 From: Ludovic Orban Date: Mon, 13 Nov 2023 09:50:47 +0100 Subject: [PATCH] add the event to the assertion list before writing the response Signed-off-by: Ludovic Orban --- .../eclipse/jetty/ee10/servlet/ServletRequestListenerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletRequestListenerTest.java b/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletRequestListenerTest.java index db9ab23eaec..5c1064bf09c 100644 --- a/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletRequestListenerTest.java +++ b/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletRequestListenerTest.java @@ -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; });