Skip to content

Commit 5fd4cf2

Browse files
Fixed tests
1 parent e7f4d7f commit 5fd4cf2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

dd-java-agent/instrumentation/netty-4.0/src/test/groovy/Netty40ServerTest.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import io.netty.handler.codec.http.HttpRequest
2626
import io.netty.handler.codec.http.HttpRequestDecoder
2727
import io.netty.handler.codec.http.HttpResponseEncoder
2828
import io.netty.handler.codec.http.HttpResponseStatus
29-
import io.netty.handler.codec.http.HttpServerCodec
3029
import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame
3130
import io.netty.handler.codec.http.websocketx.CloseWebSocketFrame
3231
import io.netty.handler.codec.http.websocketx.ContinuationWebSocketFrame

dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/base/NettyWebsocketClient.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class NettyWebsocketClient implements WebsocketClient {
9999

100100
byte[][] split(byte[] src) {
101101
if (chunkSize <= 0) {
102-
new byte[][]{src}
102+
return new byte[][]{src}
103103
}
104104
def ret = new byte[(int) Math.ceil(src.length / chunkSize)][]
105105
def offset = 0

0 commit comments

Comments
 (0)