Call correct super methods in test.
Motivation: We called the wrong super method in the test and also had a few unused imports. Modifications: Fix super method call and cleanup. Result: More correct test and cleanup.
This commit is contained in:
parent
06dcca1dbc
commit
a53f716ca1
@ -219,7 +219,7 @@ public class SocketGatheringWriteTest extends AbstractSocketTest {
|
||||
if (!autoRead) {
|
||||
ctx.read();
|
||||
}
|
||||
super.channelInactive(ctx);
|
||||
super.channelActive(ctx);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -28,11 +28,9 @@ import io.netty.channel.SimpleChannelInboundHandler;
|
||||
import io.netty.channel.socket.SocketChannel;
|
||||
import io.netty.handler.codec.spdy.SpdyFrameCodec;
|
||||
import io.netty.handler.codec.spdy.SpdyVersion;
|
||||
import io.netty.util.NetUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
@ -195,7 +193,6 @@ public class SocketSpdyEchoTest extends AbstractSocketTest {
|
||||
cb.handler(ch);
|
||||
|
||||
Channel sc = sb.bind().sync().channel();
|
||||
int port = ((InetSocketAddress) sc.localAddress()).getPort();
|
||||
|
||||
Channel cc = cb.connect(sc.localAddress()).sync().channel();
|
||||
cc.writeAndFlush(frames);
|
||||
|
Loading…
Reference in New Issue
Block a user