summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-04-11 13:26:45 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2019-04-11 13:26:45 +0200
commit94e93b7328f2436965db052639cea7e6d38e54ad (patch)
tree049ead3dfdb16e31c98f65de804f6602b32b6fe9 /vespa-http-client
parentaccba940ad0884d4f52880f75a7509f60908ab84 (diff)
Test --numPersistentConnectionsPerEndpoint argument.
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java
index 407c95e5822..9f55e0c741a 100644
--- a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java
+++ b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java
@@ -18,7 +18,7 @@ import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNot.not;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertThat;
public class CommandLineArgumentsTest {
@@ -106,6 +106,7 @@ public class CommandLineArgumentsTest {
add("host", "hostValue");
add("port", "1234");
add("timeout", "2345");
+ add("numPersistentConnectionsPerEndpoint", "7");
args.add("--useCompression");
args.add("--useDynamicThrottling");
add("maxpending", "3456");
@@ -125,6 +126,7 @@ public class CommandLineArgumentsTest {
assertThat(params.getFeedParams().getLocalQueueTimeOut(), is(2345000L));
assertThat(params.getFeedParams().getMaxInFlightRequests(), is(3456));
assertThat(params.getFeedParams().getClientTimeout(TimeUnit.MILLISECONDS), is(2345000L));
+ assertThat(params.getConnectionParams().getNumPersistentConnectionsPerEndpoint(), is(7));
}
@Test