jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1871860 - /jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/impl/io/CompressionUtilTest.java
Date Fri, 20 Dec 2019 13:53:06 GMT
Author: kwin
Date: Fri Dec 20 13:53:06 2019
New Revision: 1871860

URL: http://svn.apache.org/viewvc?rev=1871860&view=rev
Log:
JCRVLT-379 use more random bytes to make testCompressibilityEstimation
more stable

Otherwise it could happen, that the random bytes are actually
compressible (because of poor entropy)

Modified:
    jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/impl/io/CompressionUtilTest.java

Modified: jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/impl/io/CompressionUtilTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/impl/io/CompressionUtilTest.java?rev=1871860&r1=1871859&r2=1871860&view=diff
==============================================================================
--- jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/impl/io/CompressionUtilTest.java
(original)
+++ jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/fs/impl/io/CompressionUtilTest.java
Fri Dec 20 13:53:06 2019
@@ -55,8 +55,8 @@ public class CompressionUtilTest {
     @Test
     public void testCompressibilityEstimation()
             throws IOException, RepositoryException {
-        assertTrue(seemsCompressible(newArtifact(incompressibleData(5*1024), null)) <
0);
-        assertTrue(seemsCompressible(newArtifact(compressibleData(5*1024), null)) > 0);
+        assertTrue(seemsCompressible(newArtifact(incompressibleData(50*1024), null)) <
0);
+        assertTrue(seemsCompressible(newArtifact(compressibleData(50*1024), null)) > 0);
     }
 
     @Test



Mime
View raw message