Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-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 720C318FA9 for ; Fri, 29 Jan 2016 00:46:41 +0000 (UTC) Received: (qmail 60842 invoked by uid 500); 29 Jan 2016 00:46:41 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 60804 invoked by uid 500); 29 Jan 2016 00:46:41 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 60789 invoked by uid 99); 29 Jan 2016 00:46:41 -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, 29 Jan 2016 00:46:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 403F8DFFF4; Fri, 29 Jan 2016 00:46:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vkulichenko@apache.org To: commits@ignite.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: Fixed GridServicePackagePrivateSelfTest - nodes were not properly stopped Date: Fri, 29 Jan 2016 00:46:41 +0000 (UTC) Repository: ignite Updated Branches: refs/heads/ignite-1.5.6 a3acc095d -> b04f3363d Fixed GridServicePackagePrivateSelfTest - nodes were not properly stopped Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b04f3363 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b04f3363 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b04f3363 Branch: refs/heads/ignite-1.5.6 Commit: b04f3363d462dd43784f948eb1db3bd4ce73b905 Parents: a3acc09 Author: Valentin Kulichenko Authored: Thu Jan 28 16:09:20 2016 -0800 Committer: Valentin Kulichenko Committed: Thu Jan 28 16:43:43 2016 -0800 ---------------------------------------------------------------------- .../service/GridServicePackagePrivateSelfTest.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/b04f3363/modules/core/src/test/java/org/apache/ignite/internal/processors/service/GridServicePackagePrivateSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/service/GridServicePackagePrivateSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/service/GridServicePackagePrivateSelfTest.java index 430d366..c085192 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/service/GridServicePackagePrivateSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/service/GridServicePackagePrivateSelfTest.java @@ -31,16 +31,21 @@ public class GridServicePackagePrivateSelfTest extends GridCommonAbstractTest { * @throws Exception If failed. */ public void testPackagePrivateService() throws Exception { - Ignite server = startGrid("server"); + try { + Ignite server = startGrid("server"); - server.services().deployClusterSingleton("my-service", MyServiceFactory.create()); + server.services().deployClusterSingleton("my-service", MyServiceFactory.create()); - Ignition.setClientMode(true); + Ignition.setClientMode(true); - Ignite client = startGrid("client"); + Ignite client = startGrid("client"); - MyService svc = client.services().serviceProxy("my-service", MyService.class, true); + MyService svc = client.services().serviceProxy("my-service", MyService.class, true); - assertEquals(42, svc.hello()); + assertEquals(42, svc.hello()); + } + finally { + stopAllGrids(); + } } }