You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2011/06/05 19:42:43 UTC

svn commit: r1132462 - /wicket/trunk/wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/DiskDataStoreTest.java

Author: mgrigorov
Date: Sun Jun  5 17:42:43 2011
New Revision: 1132462

URL: http://svn.apache.org/viewvc?rev=1132462&view=rev
Log:
Increase a bit the maximum size of the file where the pages are stored so there is no need to override the oldest PageWindow.
This seems to solve the problem with the randomly failures because before it was possible a thread to try to read a stored page which is already overridden.


Modified:
    wicket/trunk/wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/DiskDataStoreTest.java

Modified: wicket/trunk/wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/DiskDataStoreTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/DiskDataStoreTest.java?rev=1132462&r1=1132461&r2=1132462&view=diff
==============================================================================
--- wicket/trunk/wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/DiskDataStoreTest.java (original)
+++ wicket/trunk/wicket-core/src/test/java/org/apache/wicket/page/persistent/disk/DiskDataStoreTest.java Sun Jun  5 17:42:43 2011
@@ -54,7 +54,7 @@ public class DiskDataStoreTest extends T
 	private static final Random random = new Random();
 	private static final int FILE_SIZE_MIN = 1024 * 200;
 	private static final int FILE_SIZE_MAX = 1024 * 300;
-	private static final Bytes MAX_SIZE_PER_SESSION = Bytes.bytes(1000000);
+	private static final Bytes MAX_SIZE_PER_SESSION = Bytes.megabytes(10);
 	private static final int FILE_CHANNEL_POOL_CAPACITY = 100;
 	private static final int SESSION_COUNT = 50;
 	private static final int FILES_COUNT = 1000;