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:
@@ -59,14 +59,14 @@ public class Builder {
|
||||
// not map1.equals(map2), the reason is described above
|
||||
if (map1.equals(map2)) {
|
||||
numberOfTimesTheSame++;
|
||||
Thread.sleep(1);
|
||||
Jvm.pause(1);
|
||||
if (numberOfTimesTheSame == 10) {
|
||||
System.out.println("same");
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
Thread.sleep(1);
|
||||
Jvm.pause(1);
|
||||
if (System.currentTimeMillis() - startTime > timeOutMs)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user