You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2019/06/04 16:56:34 UTC

[geode] 01/01: GEODE-6321: The test is expecting shutdown took more than 4 seconds. But the waiting should start before shutdown().

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

zhouxj pushed a commit to branch feature/GEODE-6321
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 255ddc13c41906cc11b3856a48325459ca1ae9ba
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Tue Jun 4 09:54:32 2019 -0700

    GEODE-6321: The test is expecting shutdown took more than 4 seconds. But the waiting should start before shutdown().
---
 .../internal/ScheduledThreadPoolExecutorWithKeepAliveJUnitTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-core/src/integrationTest/java/org/apache/geode/internal/ScheduledThreadPoolExecutorWithKeepAliveJUnitTest.java b/geode-core/src/integrationTest/java/org/apache/geode/internal/ScheduledThreadPoolExecutorWithKeepAliveJUnitTest.java
index d52ee93..a608cd7 100644
--- a/geode-core/src/integrationTest/java/org/apache/geode/internal/ScheduledThreadPoolExecutorWithKeepAliveJUnitTest.java
+++ b/geode-core/src/integrationTest/java/org/apache/geode/internal/ScheduledThreadPoolExecutorWithKeepAliveJUnitTest.java
@@ -219,8 +219,8 @@ public class ScheduledThreadPoolExecutorWithKeepAliveJUnitTest {
         }
       }
     }, 2, TimeUnit.SECONDS);
-    ex.shutdown();
     long start = System.nanoTime();
+    ex.shutdown();
     assertTrue(ex.awaitTermination(10, TimeUnit.SECONDS));
     long elapsed = System.nanoTime() - start;
     assertTrue("Shutdown did not wait to task to complete. Only waited "