Skip to content

Commit

Permalink
ISPN-1999 Kill cache managers using helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
galderz authored and Sanne committed May 23, 2012
1 parent 4740b8f commit 9149e10
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -66,7 +66,7 @@ public void testGetMembers() throws Exception {
assert 2 == memb1.size(); assert 2 == memb1.size();
assert memb1.equals(memb2); assert memb1.equals(memb2);


cm1.stop(); TestingUtil.killCacheManagers(cm1);
TestingUtil.blockUntilViewsReceived(50000, false, cm2); TestingUtil.blockUntilViewsReceived(50000, false, cm2);
memb2 = cm2.getMembers(); memb2 = cm2.getMembers();
assert 1 == memb2.size(); assert 1 == memb2.size();
Expand All @@ -82,7 +82,7 @@ public void testIsCoordinator() throws Exception {
cm2.getCache("cache"); // this will make sure any lazy components are started. cm2.getCache("cache"); // this will make sure any lazy components are started.
assert cm1.isCoordinator(); assert cm1.isCoordinator();
assert !cm2.isCoordinator(); assert !cm2.isCoordinator();
cm1.stop(); TestingUtil.killCacheManagers(cm1);
// wait till cache2 gets the view change notification // wait till cache2 gets the view change notification
TestingUtil.blockUntilViewsReceived(50000, false, cm2); TestingUtil.blockUntilViewsReceived(50000, false, cm2);
assert cm2.isCoordinator(); assert cm2.isCoordinator();
Expand Down

0 comments on commit 9149e10

Please sign in to comment.