Skip to content

Commit 206ae8b

Browse files
authored
chore: fix http-httpclient module tests not included in travis (#464)
1 parent 77fb914 commit 206ae8b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ allprojects {
1616
}
1717

1818
jacoco {
19-
toolVersion = '0.8.0'
19+
toolVersion = '0.8.7'
2020
}
2121
}
2222

core-httpclient-impl/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ dependencies {
55

66
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: httpClientVersion
77
}
8+
9+
task exhaustiveTest {
10+
dependsOn('test')
11+
}

core-httpclient-impl/src/test/java/com/optimizely/ab/OptimizelyHttpClientTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public class OptimizelyHttpClientTest {
4040
@Before
4141
public void setUp() {
4242
System.setProperty("https.proxyHost", "localhost");
43+
// default port (80) returns 404 instead of HttpHostConnectException
44+
System.setProperty("https.proxyPort", "12345");
4345
}
4446

4547
@After

0 commit comments

Comments
 (0)