for (int i = 0; i < 5; i++) {
// halt one of the listeners and verify count
QuorumPeer peer = peerList.get(myid);
LOG.info("Round {}, halting peer {}", new Object[] { i,
peer.getId() });
peer.shutdown();
peerList.remove(myid);
failure = verifyThreadCount(peerList, 2);
Assert.assertNull(failure, failure);
// Restart halted node and verify count
peer = new QuorumPeer(peers, peerTmpdir[myid], peerTmpdir[myid],