killInstance = iterator.next(); // kill the instance we're not connected to
}
cluster.killServer(killInstance);
Assert.assertEquals(reconnectedLatch.getCount(), 1);
Assert.assertTrue(timing.awaitLatch(readOnlyLatch));
Assert.assertEquals(reconnectedLatch.getCount(), 1);
cluster.restartServer(killInstance);
Assert.assertTrue(timing.awaitLatch(reconnectedLatch));
}