Skip to content

Apache Lucene open-source search software

SOLR-13076: TimeOut breaks the simulation framework.

Andrzej Bialeckif5479383b161
diff --git a/solr/core/src/java/org/apache/solr/util/TimeOut.java b/solr/core/src/java/org/apache/solr/util/TimeOut.java
index c06fe6ee61b..d49d3632275 100644
--- a/solr/core/src/java/org/apache/solr/util/TimeOut.java
+++ b/solr/core/src/java/org/apache/solr/util/TimeOut.java
@@ -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);
}