mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Reduce Thread.sleep to Jvm.pause, delays >= 1s to 500 ms, and remove "throws Exception" from tests
This commit is contained in:
@@ -39,7 +39,7 @@ import static org.junit.Assert.assertEquals;
|
||||
public class Issue63Test {
|
||||
|
||||
@Test
|
||||
public void issue63Test() throws Exception {
|
||||
public void issue63test() {
|
||||
Path path = Paths.get(System.getProperty("java.io.tmpdir") + "/test-vectors1.dat");
|
||||
if (Files.exists(path)) Files.delete(path);
|
||||
File mapFile = path.toFile();
|
||||
@@ -148,7 +148,7 @@ public class Issue63Test {
|
||||
new Issue63Test().testChronicleMap();
|
||||
}
|
||||
|
||||
void testChronicleMap() throws Exception {
|
||||
void testChronicleMap() {
|
||||
int num = 1_000_000;
|
||||
testChronicleMap(System.getProperty("java.io.tmpdir"), num, num);
|
||||
ThreadLocalRandom random = ThreadLocalRandom.current();
|
||||
@@ -307,7 +307,7 @@ public class Issue63Test {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testKnownItems() throws Exception {
|
||||
public void testKnownItems() {
|
||||
|
||||
ArrayList<CharSequence> averageKnownItems = new ArrayList<>();
|
||||
for (int i = 0; i < 100; i++) {
|
||||
|
||||
Reference in New Issue
Block a user