Reduce Thread.sleep to Jvm.pause, delays >= 1s to 500 ms, and remove "throws Exception" from tests

This commit is contained in:
Peter Lawrey
2016-04-12 12:08:14 +01:00
parent ceab61fd85
commit ffff33bed1
16 changed files with 22 additions and 22 deletions
@@ -233,7 +233,7 @@ public class CHMTest5 {
long elapsedTime;
while ((elapsedTime = System.currentTimeMillis() - start) < pause) {
try {
Thread.sleep(pause - elapsedTime);
Jvm.pause(pause - elapsedTime);
} catch (InterruptedException e) {
}
}