Skip to content

Commit 2f40464

Browse files
committed
Duplicate ByteBuffer to fix fragile test after Jetty update to 12.1.8
1 parent 7167301 commit 2f40464

File tree

1 file changed

+2
-2
lines changed
  • ring-jetty-adapter/test/ring/adapter/test

1 file changed

+2
-2
lines changed

ring-jetty-adapter/test/ring/adapter/test/jetty.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,8 @@
816816
(on-close [_ _ _ _])
817817
wsp/PingListener
818818
(on-ping [_ sock data]
819-
(ws/pong sock data)
820-
(swap! log conj [:ping (buf->str data)])))})]
819+
(swap! log conj [:ping (buf->str (.duplicate data))])
820+
(ws/pong sock data)))})]
821821
(with-server handler {:port test-port}
822822
(let [ws @(hato/websocket test-websocket-url
823823
{:on-pong

0 commit comments

Comments
 (0)