Skip to content

Commit 313cd98

Browse files
committed
Refine OS condition in test
1 parent 90aaaa9 commit 313cd98

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/java/com/rabbitmq/client/test/NettyTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import java.util.concurrent.TimeoutException;
4141
import org.junit.jupiter.api.BeforeEach;
4242
import org.junit.jupiter.api.Test;
43-
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
4443
import org.junit.jupiter.api.condition.EnabledOnOs;
4544
import org.junit.jupiter.api.condition.OS;
4645

@@ -60,15 +59,13 @@ void publishConsumeDefaults() throws Exception {
6059
}
6160

6261
@Test
63-
@EnabledOnOs(OS.MAC)
64-
@EnabledIfSystemProperty(named = "os.arch", matches = "aarch64")
62+
@EnabledOnOs(value = OS.MAC, architectures = "aarch64")
6563
void kqueue() throws Exception {
6664
nativeIoTest(KQueueIoHandler.newFactory(), KQueueSocketChannel.class);
6765
}
6866

6967
@Test
70-
@EnabledOnOs(OS.LINUX)
71-
@EnabledIfSystemProperty(named = "os.arch", matches = "amd64")
68+
@EnabledOnOs(value = OS.LINUX, architectures = "amd64")
7269
void epoll() throws Exception {
7370
nativeIoTest(EpollIoHandler.newFactory(), EpollSocketChannel.class);
7471
}

0 commit comments

Comments
 (0)