You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2018/07/19 00:03:08 UTC

[geode] branch develop updated: GEODE-1703: Lengthened a timeout to fix a flaky test. (#2150)

This is an automated email from the ASF dual-hosted git repository.

upthewaterspout pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7c25bb0  GEODE-1703: Lengthened a timeout to fix a flaky test. (#2150)
7c25bb0 is described below

commit 7c25bb054040f770b24a1a34838df869af3c1604
Author: mhansonp <mh...@pivotal.io>
AuthorDate: Wed Jul 18 17:03:03 2018 -0700

    GEODE-1703: Lengthened a timeout to fix a flaky test. (#2150)
    
    The test was not allowing enough time to wait in in some circumstances.
    Doubled the time to ensure there is enough the next time and with GC etc.
---
 .../internal/cache/persistence/PersistentRecoveryOrderDUnitTest.java  | 2 --
 .../internal/cache/persistence/PersistentReplicatedTestBase.java      | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentRecoveryOrderDUnitTest.java b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentRecoveryOrderDUnitTest.java
index c11c8d9..cd3ccd1 100644
--- a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentRecoveryOrderDUnitTest.java
+++ b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentRecoveryOrderDUnitTest.java
@@ -88,7 +88,6 @@ import org.apache.geode.test.dunit.SerializableRunnable;
 import org.apache.geode.test.dunit.VM;
 import org.apache.geode.test.dunit.Wait;
 import org.apache.geode.test.dunit.WaitCriterion;
-import org.apache.geode.test.junit.categories.FlakyTest;
 import org.apache.geode.test.junit.categories.PersistenceTest;
 
 /**
@@ -1264,7 +1263,6 @@ public class PersistentRecoveryOrderDUnitTest extends PersistentReplicatedTestBa
     });
   }
 
-  @Category(FlakyTest.class) // GEODE-1703: fails assertion: Region not created within30000
   @Test
   public void testCrashDuringPreparePersistentId() throws Exception {
     Host host = Host.getHost(0);
diff --git a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentReplicatedTestBase.java b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentReplicatedTestBase.java
index 22670e5..680c381 100644
--- a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentReplicatedTestBase.java
+++ b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentReplicatedTestBase.java
@@ -41,7 +41,7 @@ import org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase;
 
 public abstract class PersistentReplicatedTestBase extends JUnit4CacheTestCase {
 
-  protected static final int MAX_WAIT = 30 * 1000;
+  protected static final int MAX_WAIT = 60 * 1000;
   protected static String REGION_NAME = "region";
   protected File diskDir;
   protected static String SAVED_ACK_WAIT_THRESHOLD;
@@ -180,7 +180,7 @@ public abstract class PersistentReplicatedTestBase extends JUnit4CacheTestCase {
       fail("Region not created within" + MAX_WAIT);
     }
     if (!future.isAlive() && wait) {
-      fail("Did not expecte region creation to complete");
+      fail("Did not expect region creation to complete");
     }
     if (!wait && future.exceptionOccurred()) {
       throw new RuntimeException(future.getException());