From 9bc9082ff3a3bd6c84a93e7757b440cc1422e75f Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Fri, 1 May 2020 13:01:40 +1000 Subject: [PATCH] Fix broken WebSocket UTF-8 continuation test Signed-off-by: Lachlan Roberts --- .../org/eclipse/jetty/websocket/util/StringMessageSinkTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-websocket/websocket-util/src/test/java/org/eclipse/jetty/websocket/util/StringMessageSinkTest.java b/jetty-websocket/websocket-util/src/test/java/org/eclipse/jetty/websocket/util/StringMessageSinkTest.java index 79c50555bf5..8696ec91565 100644 --- a/jetty-websocket/websocket-util/src/test/java/org/eclipse/jetty/websocket/util/StringMessageSinkTest.java +++ b/jetty-websocket/websocket-util/src/test/java/org/eclipse/jetty/websocket/util/StringMessageSinkTest.java @@ -90,7 +90,7 @@ public class StringMessageSinkTest messageSink.accept(new Frame(OpCode.TEXT, continuationUtf8Payload).setFin(true), callback); callback.block(5, TimeUnit.SECONDS); - assertThat(endpoint.messages.poll(5, TimeUnit.SECONDS), is('\uD800' + '\uDF48')); // UTF-8 encoded payload. + assertThat(endpoint.messages.poll(5, TimeUnit.SECONDS), is("\uD800\uDF48")); // UTF-8 encoded payload. } @Test