From bdbc348e1b6968b497e51a2e56f7c25de7250554 Mon Sep 17 00:00:00 2001 From: sullis Date: Sat, 24 Feb 2024 12:09:49 -0800 Subject: [PATCH] unit test for io_uring --- .../src/test/java/org/asynchttpclient/netty/NettyTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/test/java/org/asynchttpclient/netty/NettyTest.java b/client/src/test/java/org/asynchttpclient/netty/NettyTest.java index 05e82708d..6f7e034b9 100644 --- a/client/src/test/java/org/asynchttpclient/netty/NettyTest.java +++ b/client/src/test/java/org/asynchttpclient/netty/NettyTest.java @@ -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; @@ -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() {