mirror of https://github.com/apache/lucene.git
SOLR-13076: TimeOut breaks the simulation framework.
This commit is contained in:
parent
785d02208a
commit
f5479383b1
|
@ -61,7 +61,7 @@ public class TimeOut {
|
|||
public void waitFor(String messageOnTimeOut, Supplier<Boolean> supplier)
|
||||
throws InterruptedException, TimeoutException {
|
||||
while (!supplier.get() && !hasTimedOut()) {
|
||||
Thread.sleep(250);
|
||||
timeSource.sleep(250);
|
||||
}
|
||||
if (hasTimedOut()) throw new TimeoutException(messageOnTimeOut);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue