Skip to content

Commit

Permalink
add NettyTransportTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Oct 22, 2023
1 parent bb6152d commit 0f76369
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.netflix.netty.common;

import io.netty.channel.epoll.Epoll;
import io.netty.incubator.channel.uring.IOUring;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;

import static org.junit.jupiter.api.Assertions.assertTrue;

class NettyTransportTest {

@Test
@EnabledOnOs(value = {OS.LINUX})
void epollIsAvailableOnLinux() {
assertTrue(Epoll.isAvailable());
}

@Test
@EnabledOnOs(value = {OS.LINUX})
void ioUringIsAvailableOnLinux() {
assertTrue(IOUring.isAvailable());
}
}

0 comments on commit 0f76369

Please sign in to comment.