Permalink
Browse files

ISPN-1999 Kill cache managers using helper method

  • Loading branch information...
1 parent 81acb54 commit 4f5734278e1336fc1ae86f0fb7278d92c4c9d5c6 @galderz galderz committed May 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/test/java/org/infinispan/api/CacheClusterJoinTest.java
@@ -66,7 +66,7 @@ public void testGetMembers() throws Exception {
assert 2 == memb1.size();
assert memb1.equals(memb2);
- cm1.stop();
+ TestingUtil.killCacheManagers(cm1);
TestingUtil.blockUntilViewsReceived(50000, false, cm2);
memb2 = cm2.getMembers();
assert 1 == memb2.size();
@@ -82,7 +82,7 @@ public void testIsCoordinator() throws Exception {
cm2.getCache("cache"); // this will make sure any lazy components are started.
assert cm1.isCoordinator();
assert !cm2.isCoordinator();
- cm1.stop();
+ TestingUtil.killCacheManagers(cm1);
// wait till cache2 gets the view change notification
TestingUtil.blockUntilViewsReceived(50000, false, cm2);
assert cm2.isCoordinator();

0 comments on commit 4f57342

Please sign in to comment.