summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorValerij Fredriksen <freva@users.noreply.github.com>2022-05-30 09:24:53 +0200
committerGitHub <noreply@github.com>2022-05-30 09:24:53 +0200
commit29bbcf6e2c3cf7133a1109c51d93fedc7e493b97 (patch)
treef1eb4b6c9c08fc492d9568e7d3296f7b2cc58e16 /container-core
parent9aebfc50b7f0f967bb68e5e6986bc03afc469bd5 (diff)
Revert "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 42ce0284602..d4d6dcee957 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.uncheck;
+import static com.yahoo.yolean.Exceptions.uncheckInterrupted;
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;
- uncheck(() -> Thread.sleep(200));
+ uncheckInterrupted(() -> Thread.sleep(200));
}
Assertions.assertThat(items).hasSize(expectedItems);
}