less fragile tests

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2018-02-20 17:36:29 +11:00
parent 1e8422935c
commit af06fddef1
1 changed files with 1 additions and 3 deletions

View File

@ -174,9 +174,7 @@ public class ReservedThreadExecutorTest
int available = _reservedExecutor.getAvailable();
assertThat(available,Matchers.greaterThan(0));
TimeUnit.MILLISECONDS.sleep(IDLE/2);
TimeUnit.MILLISECONDS.sleep(IDLE/2);
TimeUnit.MILLISECONDS.sleep(IDLE/2);
TimeUnit.MILLISECONDS.sleep(2*IDLE);
assertThat(_reservedExecutor.getAvailable(),Matchers.lessThan(available));
}