File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
dd-java-agent/instrumentation/netty-4.1/src/test/groovy Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ abstract class Netty41ServerTest extends HttpServerTest<EventLoopGroup> {
175175 it. flush()
176176 },
177177 userEventTriggered : { ChannelHandlerContext ctx , Object evt ->
178+ System . out. println (" Received event $evt . session is ${ WsEndpoint.activeSession} " )
178179 if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete ) {
179180 WsEndpoint . onOpen(ctx)
180181 }
@@ -285,6 +286,10 @@ abstract class Netty41ServerTest extends HttpServerTest<EventLoopGroup> {
285286 boolean testBadUrl () {
286287 false
287288 }
289+
290+ def cleanup () {
291+ WsEndpoint . activeSession = null
292+ }
288293}
289294
290295class Netty41ServerV0Test extends Netty41ServerTest implements TestingNettyHttpNamingConventions. ServerV0 {
@@ -310,5 +315,3 @@ class WsEndpoint {
310315 activeSession = null
311316 }
312317}
313-
314-
You can’t perform that action at this time.
0 commit comments