You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vk...@apache.org on 2016/01/29 01:46:41 UTC
ignite git commit: Fixed GridServicePackagePrivateSelfTest - nodes
were not properly stopped
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 <va...@gmail.com>
Authored: Thu Jan 28 16:09:20 2016 -0800
Committer: Valentin Kulichenko <va...@gmail.com>
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();
+ }
}
}