Increase persistence write limit

Sometimes entities will get another round of writes before the test is able to 
check the size, going above the previous limit. Usually writes are around 15k, 
but when this happens they go a bit above 20k.


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/389acacb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/389acacb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/389acacb

Branch: refs/heads/master
Commit: 389acacb6a4fd7374dc4b3df13c0920108472f0c
Parents: d2d90c2
Author: Svetoslav Neykov <[email protected]>
Authored: Thu Jun 11 14:17:12 2015 +0300
Committer: Svetoslav Neykov <[email protected]>
Committed: Tue Jul 7 17:29:16 2015 +0300

----------------------------------------------------------------------
 .../BrooklynMementoPersisterInMemorySizeIntegrationTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/389acacb/core/src/test/java/brooklyn/entity/rebind/persister/BrooklynMementoPersisterInMemorySizeIntegrationTest.java
----------------------------------------------------------------------
diff --git 
a/core/src/test/java/brooklyn/entity/rebind/persister/BrooklynMementoPersisterInMemorySizeIntegrationTest.java
 
b/core/src/test/java/brooklyn/entity/rebind/persister/BrooklynMementoPersisterInMemorySizeIntegrationTest.java
index ac647c6..14545b4 100644
--- 
a/core/src/test/java/brooklyn/entity/rebind/persister/BrooklynMementoPersisterInMemorySizeIntegrationTest.java
+++ 
b/core/src/test/java/brooklyn/entity/rebind/persister/BrooklynMementoPersisterInMemorySizeIntegrationTest.java
@@ -74,8 +74,8 @@ public class 
BrooklynMementoPersisterInMemorySizeIntegrationTest extends Brookly
         long out1 = recorder.getBytesOut();
         int filesOut1 = recorder.getCountDataOut();
         Assert.assertTrue(out1>512, "should have written at least 0.5k, only 
wrote "+out1);
-        Assert.assertTrue(out1<20*1000, "should have written less than 20k, 
wrote "+out1);
-        Assert.assertTrue(filesOut1<20, "should have written fewer than 20 
files, wrote "+out1);
+        Assert.assertTrue(out1<30*1000, "should have written less than 30k, 
wrote "+out1);
+        Assert.assertTrue(filesOut1<30, "should have written fewer than 30 
files, wrote "+out1);
         
         ((EntityInternal)app).setAttribute(TestEntity.NAME, "hello world");
         if (forceDelay) Time.sleep(Duration.FIVE_SECONDS);

Reply via email to