diff --git a/function/http-request-function/src/test/java/org/springframework/cloud/fn/http/request/HttpRequestFunctionTestApplicationTests.java b/function/http-request-function/src/test/java/org/springframework/cloud/fn/http/request/HttpRequestFunctionTestApplicationTests.java index 3243c0b6..1747d217 100644 --- a/function/http-request-function/src/test/java/org/springframework/cloud/fn/http/request/HttpRequestFunctionTestApplicationTests.java +++ b/function/http-request-function/src/test/java/org/springframework/cloud/fn/http/request/HttpRequestFunctionTestApplicationTests.java @@ -161,7 +161,8 @@ public class HttpRequestFunctionTestApplicationTests { try { httpRequestFunction.apply(new GenericMessage("")); fail("Expected exception"); - } catch (Throwable throwable) { + } + catch (Throwable throwable) { assertThat(throwable.getMessage()).contains("Connection refused"); } });