Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Native cipher test should only be enabled on Linux
Dieser Commit ist enthalten in:
Ursprung
bf81d20ba7
Commit
911aba1b45
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren