Keep references to threads and shut them down more properly

This commit is contained in:
Edward Capriolo
2015-01-12 22:41:21 -05:00
parent 5072be6636
commit 6565b03192
4 changed files with 34 additions and 8 deletions

View File

@ -18,6 +18,15 @@ public class TenNodeThreeSeedTest {
@Test
public void test() throws UnknownHostException, InterruptedException{
abc();
}
@Test
public void testAgain() throws UnknownHostException, InterruptedException{
abc();
}
public void abc() throws InterruptedException, UnknownHostException{
GossipSettings settings = new GossipSettings();
int seedNodes = 3;
ArrayList<GossipMember> startupMembers = new ArrayList<GossipMember>();
@ -39,6 +48,6 @@ public class TenNodeThreeSeedTest {
}
for (int i = 0; i < clusterMembers; ++i) {
clients.get(i).shutdown();
}
}
}
}