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:
Norman Maurer 2018-02-25 16:33:13 +01:00
parent 06dcca1dbc
commit a53f716ca1
2 changed files with 1 additions and 4 deletions

View File

@ -219,7 +219,7 @@ public class SocketGatheringWriteTest extends AbstractSocketTest {
if (!autoRead) {
ctx.read();
}
super.channelInactive(ctx);
super.channelActive(ctx);
}
@Override

View File

@ -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);