}
};
thread.start();
Thread.sleep(500); // wait for server to start
ChronosClient chronosClient = createChronosServer();
long timestamp1 = chronosClient.getTimestamps(100);
long timestamp2 = chronosClient.getTimestamps(100);
assertTrue(timestamp2 - timestamp1 >= 100);
chronosServer.stopThriftServer();
chronosServer.getFailoverWatcher().close();
chronosClient.getChronosClientWatcher().close();
}