From 1ad600ea49de49d03a75f69624f7bb5bc7d5e9fb Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Thu, 30 Apr 2020 10:14:43 +1000 Subject: [PATCH] fix WS DistributionTest incorrect test expectation Signed-off-by: Lachlan Roberts --- .../eclipse/jetty/tests/distribution/DistributionTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java b/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java index 38f729e84b2..6afc56b7c6e 100644 --- a/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java +++ b/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java @@ -467,7 +467,7 @@ public class DistributionTests extends AbstractDistributionTest assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message")); session.close(); assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS)); - assertThat(webSocketListener.closeCode, is(StatusCode.NORMAL)); + assertThat(webSocketListener.closeCode, is(StatusCode.NO_CODE)); // Verify that /test2 and /test3 could not be started. ContentResponse response = client.GET(serverUri.resolve("/test2/badonopen/a")); @@ -482,7 +482,7 @@ public class DistributionTests extends AbstractDistributionTest assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message")); session.close(); assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS)); - assertThat(webSocketListener.closeCode, is(StatusCode.NORMAL)); + assertThat(webSocketListener.closeCode, is(StatusCode.NO_CODE)); } } }