break;
}
Thread.sleep(250); // 4 attempts/sec
}
} catch (final IOException e) {
throw new TestUtilRuntimeException(e);
} catch (final InterruptedException e) {
throw new TestUtilRuntimeException(e);
}
}
if (fileLock == null) {
throw new TestUtilRuntimeException("timeout after " + waitMS);
}
}