From d69bf3149474499614a5ab7e458b1215da58f4d4 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Thu, 4 Jul 2019 11:10:24 +1000 Subject: [PATCH] Issue #300 - fix test expectation after CompressExtension changes Signed-off-by: Lachlan Roberts --- .../org/eclipse/jetty/websocket/tests/WriteAfterStopTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-websocket/jetty-websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/WriteAfterStopTest.java b/jetty-websocket/jetty-websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/WriteAfterStopTest.java index 211efcddfa5..6aca5cbe627 100644 --- a/jetty-websocket/jetty-websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/WriteAfterStopTest.java +++ b/jetty-websocket/jetty-websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/WriteAfterStopTest.java @@ -19,6 +19,7 @@ package org.eclipse.jetty.websocket.tests; import java.net.URI; +import java.nio.channels.ClosedChannelException; import java.util.concurrent.TimeUnit; import org.eclipse.jetty.server.Server; @@ -108,7 +109,7 @@ public class WriteAfterStopTest try (StacklessLogging stacklessLogging = new StacklessLogging(CompressExtension.class)) { - assertThrows(NullPointerException.class, + assertThrows(ClosedChannelException.class, () -> session.getRemote().sendString("hello world")); } }