aboutsummaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@yahooinc.com>2022-05-25 14:07:44 +0200
committerValerij Fredriksen <valerijf@yahooinc.com>2022-05-25 15:53:22 +0200
commit6024c19db7858d49d783f53b765709399598bc51 (patch)
tree2a6d044afab88351bcd1735b8b364f8bee6418e7 /container-core
parent69bb4e0e94cd71aec2b6b20ba146e40394c8a087 (diff)
uncheck() all checked exceptions
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ProxyProtocolTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ProxyProtocolTest.java b/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ProxyProtocolTest.java
index d4d6dcee957..42ce0284602 100644
--- a/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ProxyProtocolTest.java
+++ b/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ProxyProtocolTest.java
@@ -27,7 +27,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import static com.yahoo.jdisc.http.server.jetty.Utils.generatePrivateKeyAndCertificate;
-import static com.yahoo.yolean.Exceptions.uncheckInterrupted;
+import static com.yahoo.yolean.Exceptions.uncheck;
import static org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory.V1;
import static org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory.V2;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -221,7 +221,7 @@ class ProxyProtocolTest {
private static void assertLogSize(int expectedItems, Collection<?> items) {
for (int attempt = 0; attempt < 10; attempt++) {
if (items.size() >= expectedItems) break;
- uncheckInterrupted(() -> Thread.sleep(200));
+ uncheck(() -> Thread.sleep(200));
}
Assertions.assertThat(items).hasSize(expectedItems);
}