HCOLL-340 probable fix of segmentation fault in SanityCheck test

This commit is contained in:
leventov
2015-06-08 18:46:47 +03:00
parent d2bac514af
commit 055d1da318
@@ -109,12 +109,21 @@ public class ChronicleMapSanityCheckTest {
}
}, 0, consumerPeriod,consumerTimeUnit);
Thread.sleep(totalTestTimeMS);
Thread.sleep(totalTestTimeMS);
consumerExecutor.shutdown();
producerExecutor.shutdown();
consumerExecutor.shutdown();
try {
consumerExecutor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
producerExecutor.shutdown();
try {
producerExecutor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
}
}