From b785ddc409f8948da7cc7917eb99656adef31e70 Mon Sep 17 00:00:00 2001 From: gregw Date: Tue, 15 Oct 2024 08:04:19 +1100 Subject: [PATCH] Fix #12356 Do not send keep-alive when not persistent updates from test failures --- .../test/java/org/eclipse/jetty/ee9/nested/RequestTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jetty-ee9/jetty-ee9-nested/src/test/java/org/eclipse/jetty/ee9/nested/RequestTest.java b/jetty-ee9/jetty-ee9-nested/src/test/java/org/eclipse/jetty/ee9/nested/RequestTest.java index c64ad121971a..f274322b939d 100644 --- a/jetty-ee9/jetty-ee9-nested/src/test/java/org/eclipse/jetty/ee9/nested/RequestTest.java +++ b/jetty-ee9/jetty-ee9-nested/src/test/java/org/eclipse/jetty/ee9/nested/RequestTest.java @@ -1464,8 +1464,7 @@ public void testConnectionClose() throws Exception 200, TimeUnit.MILLISECONDS ); assertThat(response, containsString("200")); - assertThat(response, containsString("Connection: TE")); - assertThat(response, containsString("Connection: Other")); + assertThat(response, containsString("Connection: TE,Other")); response = _connector.getResponse( "GET / HTTP/1.1\n" + @@ -1474,7 +1473,7 @@ public void testConnectionClose() throws Exception "\n" ); assertThat(response, containsString("200 OK")); - assertThat(response, containsString("Connection: close")); + assertThat(response, containsString("Connection: TE,Other,close")); assertThat(response, containsString("Hello World")); }