From 1afcb41368479ac2ec76b941936a46533cb7c039 Mon Sep 17 00:00:00 2001 From: Rei Odaira Date: Fri, 27 Jan 2017 13:41:36 -0600 Subject: [PATCH] Update the expected binary size for big-endian platforms --- src/test/java/org/xerial/snappy/SnappyOutputStreamTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/xerial/snappy/SnappyOutputStreamTest.java b/src/test/java/org/xerial/snappy/SnappyOutputStreamTest.java index a996c07..f2b7774 100755 --- a/src/test/java/org/xerial/snappy/SnappyOutputStreamTest.java +++ b/src/test/java/org/xerial/snappy/SnappyOutputStreamTest.java @@ -166,7 +166,7 @@ public class SnappyOutputStreamTest // Hardcoding an expected compressed size here will catch regressions that lower the // compression quality: if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN) - assertEquals(91080, expectedCompressedData.length); + assertEquals(90992, expectedCompressedData.length); else assertEquals(91080, expectedCompressedData.length); // The chunk size should not affect the size of the compressed output: