diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2022-05-30 09:24:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 09:24:53 +0200 |
commit | 29bbcf6e2c3cf7133a1109c51d93fedc7e493b97 (patch) | |
tree | f1eb4b6c9c08fc492d9568e7d3296f7b2cc58e16 /container-core/src/test/java/com/yahoo/jdisc/http/server | |
parent | 9aebfc50b7f0f967bb68e5e6986bc03afc469bd5 (diff) |
Revert "uncheck() all checked exceptions"
Diffstat (limited to 'container-core/src/test/java/com/yahoo/jdisc/http/server')
-rw-r--r-- | container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ProxyProtocolTest.java | 4 |
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); } |