From 911aba1b450daf44085aee035c1c0db6812d462c Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 27 Oct 2020 01:53:43 -0400 Subject: [PATCH] Native cipher test should only be enabled on Linux --- .../velocitypowered/natives/encryption/VelocityCipherTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/src/test/java/com/velocitypowered/natives/encryption/VelocityCipherTest.java b/native/src/test/java/com/velocitypowered/natives/encryption/VelocityCipherTest.java index 0e76bdd0..7fe7e777 100644 --- a/native/src/test/java/com/velocitypowered/natives/encryption/VelocityCipherTest.java +++ b/native/src/test/java/com/velocitypowered/natives/encryption/VelocityCipherTest.java @@ -2,6 +2,7 @@ package com.velocitypowered.natives.encryption; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; +import static org.junit.jupiter.api.condition.OS.LINUX; import com.velocitypowered.natives.util.Natives; import io.netty.buffer.ByteBuf; @@ -13,6 +14,7 @@ import java.util.function.Supplier; import javax.crypto.spec.SecretKeySpec; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledOnOs; class VelocityCipherTest { @@ -29,6 +31,7 @@ class VelocityCipherTest { } @Test + @EnabledOnOs({LINUX}) void nativeIntegrityCheck() throws GeneralSecurityException { VelocityCipherFactory factory = Natives.cipher.get(); if (factory == JavaVelocityCipher.FACTORY) {