Skip to content

Commit

Permalink
Update *SocketTestPermutation to use new way of constructing EventLoo… (
Browse files Browse the repository at this point in the history
#14044)

…pGroups

Motivation:

#14020 did miss to change
EpollSocketTestPermution and KqueueSocketTestPermution

Modifications:

Update missed files

Result:

Cleanup
  • Loading branch information
normanmaurer committed May 11, 2024
1 parent c660d84 commit 2c17831
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import io.netty.channel.ChannelFactory;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.MultiThreadIoEventLoopGroup;
import io.netty.channel.socket.InternetProtocolFamily;
import io.netty.channel.socket.nio.NioDatagramChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
Expand All @@ -44,10 +45,10 @@ class EpollSocketTestPermutation extends SocketTestPermutation {

static final EpollSocketTestPermutation INSTANCE = new EpollSocketTestPermutation();

static final EventLoopGroup EPOLL_BOSS_GROUP =
new EpollEventLoopGroup(BOSSES, new DefaultThreadFactory("testsuite-epoll-boss", true));
static final EventLoopGroup EPOLL_WORKER_GROUP =
new EpollEventLoopGroup(WORKERS, new DefaultThreadFactory("testsuite-epoll-worker", true));
static final EventLoopGroup EPOLL_BOSS_GROUP = new MultiThreadIoEventLoopGroup(
BOSSES, new DefaultThreadFactory("testsuite-epoll-boss", true), EpollIoHandler.newFactory());
static final EventLoopGroup EPOLL_WORKER_GROUP = new MultiThreadIoEventLoopGroup(
WORKERS, new DefaultThreadFactory("testsuite-epoll-worker", true), EpollIoHandler.newFactory());

@Override
public List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> socket() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import io.netty.channel.ChannelFactory;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.MultiThreadIoEventLoopGroup;
import io.netty.channel.socket.InternetProtocolFamily;
import io.netty.channel.socket.nio.NioDatagramChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
Expand All @@ -41,10 +42,10 @@ class KQueueSocketTestPermutation extends SocketTestPermutation {

static final KQueueSocketTestPermutation INSTANCE = new KQueueSocketTestPermutation();

static final EventLoopGroup KQUEUE_BOSS_GROUP =
new KQueueEventLoopGroup(BOSSES, new DefaultThreadFactory("testsuite-KQueue-boss", true));
static final EventLoopGroup KQUEUE_WORKER_GROUP =
new KQueueEventLoopGroup(WORKERS, new DefaultThreadFactory("testsuite-KQueue-worker", true));
static final EventLoopGroup KQUEUE_BOSS_GROUP = new MultiThreadIoEventLoopGroup(
BOSSES, new DefaultThreadFactory("testsuite-KQueue-boss", true), KQueueIoHandler.newFactory());
static final EventLoopGroup KQUEUE_WORKER_GROUP = new MultiThreadIoEventLoopGroup(
WORKERS, new DefaultThreadFactory("testsuite-KQueue-worker", true), KQueueIoHandler.newFactory());

@Override
public List<TestsuitePermutation.BootstrapComboFactory<ServerBootstrap, Bootstrap>> socket() {
Expand Down

0 comments on commit 2c17831

Please sign in to comment.