Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25778183D4 for ; Fri, 11 Sep 2015 03:38:04 +0000 (UTC) Received: (qmail 95888 invoked by uid 500); 11 Sep 2015 03:38:03 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 95860 invoked by uid 500); 11 Sep 2015 03:38:03 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 95834 invoked by uid 99); 11 Sep 2015 03:38:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 03:38:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 834ABDFADD; Fri, 11 Sep 2015 03:38:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: randgalt@apache.org To: commits@curator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: curator git commit: test assumed first latch would be leader. Fixed it so that this is so Date: Fri, 11 Sep 2015 03:38:03 +0000 (UTC) Repository: curator Updated Branches: refs/heads/CURATOR-261 f8f13c25d -> a9271ff60 test assumed first latch would be leader. Fixed it so that this is so Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/a9271ff6 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/a9271ff6 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/a9271ff6 Branch: refs/heads/CURATOR-261 Commit: a9271ff6033557efeda01e4c543d0f840519e64d Parents: f8f13c2 Author: randgalt Authored: Thu Sep 10 22:37:57 2015 -0500 Committer: randgalt Committed: Thu Sep 10 22:37:57 2015 -0500 ---------------------------------------------------------------------- .../apache/curator/framework/recipes/leader/TestLeaderLatch.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/a9271ff6/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderLatch.java ---------------------------------------------------------------------- diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderLatch.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderLatch.java index ecaa433..991e6fc 100644 --- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderLatch.java +++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderLatch.java @@ -403,10 +403,9 @@ public class TestLeaderLatch extends BaseClassForTests LeaderLatch latch = new LeaderLatch(client, PATH_NAME); latch.start(); latches.add(latch); + waitForALeader(latches, timing); } - waitForALeader(latches, timing); - //we need to close a Participant that doesn't be actual leader (first Participant) nor the last latches.get(PARTICIPANT_ID).close();