use of org.apache.samza.util.ExponentialSleepStrategy in project samza by apache.
the class TestLocalityServlet method testReadProcessorLocality.
@Test
public void testReadProcessorLocality() throws Exception {
URL url = new URL(webApp.getUrl().toString() + "locality?processorId=" + PROCESSOR_ID1);
String response = HttpUtil.read(url, 1000, new ExponentialSleepStrategy());
assertEquals("Mismatch in the locality for processor " + PROCESSOR_ID1, mapper.readValue(response, ProcessorLocality.class), PROCESSOR_1_LOCALITY);
}
Aggregations