diff options
Diffstat (limited to 'container-search/src/test/java/com/yahoo')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/handler/SearchHandlerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/handler/SearchHandlerTest.java b/container-search/src/test/java/com/yahoo/search/handler/SearchHandlerTest.java index b1354106f19..34b838f996c 100644 --- a/container-search/src/test/java/com/yahoo/search/handler/SearchHandlerTest.java +++ b/container-search/src/test/java/com/yahoo/search/handler/SearchHandlerTest.java @@ -36,7 +36,7 @@ import java.io.IOException; import java.net.URI; import java.util.concurrent.Executors; -import static com.yahoo.yolean.Exceptions.uncheckInterrupted; +import static com.yahoo.yolean.Exceptions.uncheck; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotSame; @@ -306,7 +306,7 @@ public class SearchHandlerTest { private void assertMetricPresent(String key) { for (int i = 0; i < 200; i++) { if (metric.metrics().containsKey(key)) return; - uncheckInterrupted(() -> Thread.sleep(1)); + uncheck(() -> Thread.sleep(1)); } fail(String.format("Could not find metric with key '%s' in '%s'", key, metric)); } |