Skip to content

Commit

Permalink
unit test for io_uring
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Feb 24, 2024
1 parent 3145788 commit bdbc348
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/test/java/org/asynchttpclient/netty/NettyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.netty.channel.epoll.Epoll;
import io.netty.channel.kqueue.KQueue;
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;
Expand All @@ -15,6 +16,12 @@ public void epollIsAvailableOnLinux() {
assertTrue(Epoll.isAvailable());
}

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

@Test
@EnabledOnOs(value = OS.MAC)
public void kqueueIsAvailableOnMac() {
Expand Down

0 comments on commit bdbc348

Please sign in to comment.