aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-05-12 09:34:49 +0200
committerJulien HENRY <henryju@yahoo.fr>2017-05-12 13:33:42 +0200
commit37db8ce7439309afacbad895ccbd08e0e3af0656 (patch)
tree06ae4a02db27cf5553dccf486e31078030ad5e6b /server
parent8875546d4d04eaaeba745f468b78918459f905fb (diff)
downloadsonarqube-37db8ce7439309afacbad895ccbd08e0e3af0656.tar.gz
sonarqube-37db8ce7439309afacbad895ccbd08e0e3af0656.zip
SONAR-9220 Update OkHttp to v3.7
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/webhook/WebhookCallerImplTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/webhook/WebhookCallerImplTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/webhook/WebhookCallerImplTest.java
index b0307450cd1..9160e36eb30 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/webhook/WebhookCallerImplTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/webhook/WebhookCallerImplTest.java
@@ -39,7 +39,6 @@ import org.sonar.server.util.OkHttpClientProvider;
import static org.assertj.core.api.Assertions.assertThat;
-
public class WebhookCallerImplTest {
private static final long NOW = 1_500_000_000_000L;
@@ -88,8 +87,8 @@ public class WebhookCallerImplTest {
assertThat(delivery.getHttpStatus()).isEmpty();
assertThat(delivery.getDurationInMs()).isEmpty();
- // message can be "Failed to connect" or "connect timed out"
- assertThat(delivery.getErrorMessage().get()).contains("connect");
+ // message can be "Connection refused" or "connect timed out"
+ assertThat(delivery.getErrorMessage().get()).matches("(.*Connection refused.*)|(.*connect timed out.*)");
assertThat(delivery.getAt()).isEqualTo(NOW);
assertThat(delivery.getWebhook()).isSameAs(webhook);
assertThat(delivery.getPayload()).isSameAs(PAYLOAD);