3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Native tests should only run on Linux

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-05-25 13:29:02 -04:00
Ursprung 62d3f61a77
Commit ae8852dc9d

Datei anzeigen

@ -33,13 +33,13 @@ class VelocityCompressorTest {
}
@Test
@EnabledOnOs({MAC, LINUX})
@EnabledOnOs({LINUX})
void sanityCheckNative() {
assertThrows(IllegalArgumentException.class, () -> Natives.compress.get().create(-42));
}
@Test
@EnabledOnOs({MAC, LINUX})
@EnabledOnOs({LINUX})
void nativeIntegrityCheck() throws DataFormatException {
VelocityCompressor compressor = Natives.compress.get().create(Deflater.DEFAULT_COMPRESSION);
if (compressor.preferredBufferType() != BufferPreference.DIRECT_REQUIRED) {