diff --git a/native/src/test/java/net/md_5/bungee/NativeZlibTest.java b/native/src/test/java/net/md_5/bungee/NativeZlibTest.java index 9287129f..50a23244 100644 --- a/native/src/test/java/net/md_5/bungee/NativeZlibTest.java +++ b/native/src/test/java/net/md_5/bungee/NativeZlibTest.java @@ -20,7 +20,11 @@ public class NativeZlibTest @Test public void doTest() throws DataFormatException { - test( factory.newInstance() ); + if ( NativeCode.isSupported() ) + { + Assert.assertTrue( "Native code failed to load!", factory.load() ); + test( factory.newInstance() ); + } test( new JavaZlib() ); }