mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-340 probable fix of segmentation fault in SanityCheck test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user