diff options
author | Jo Kristian Bergum <bergum@oath.com> | 2019-04-04 09:55:15 +0200 |
---|---|---|
committer | Jo Kristian Bergum <bergum@oath.com> | 2019-04-04 09:55:15 +0200 |
commit | adc15ad0ee687db3858ed9a0d548f0c4810ddfa8 (patch) | |
tree | b0c6349f4d8c878be36312019f13af9e7bb2d80d /vespa-http-client/src/test/java/com | |
parent | ea56eae3f73af014d90956a96c719b94efc7ed5a (diff) |
Change default persisted connections down to 1
Diffstat (limited to 'vespa-http-client/src/test/java/com')
2 files changed, 2 insertions, 2 deletions
diff --git a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/config/ConnectionParamsTest.java b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/config/ConnectionParamsTest.java index 39c1257816c..bca43902b9e 100644 --- a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/config/ConnectionParamsTest.java +++ b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/config/ConnectionParamsTest.java @@ -25,7 +25,7 @@ public class ConnectionParamsTest { ConnectionParams params = new ConnectionParams.Builder().build(); assertThat(params.getHeaders().isEmpty(), is(true)); - assertThat(params.getNumPersistentConnectionsPerEndpoint(), is(8)); + assertThat(params.getNumPersistentConnectionsPerEndpoint(), is(1)); assertThat(params.getSslContext(), nullValue()); } 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 53715259a0c..407c95e5822 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 @@ -91,7 +91,7 @@ public class CommandLineArgumentsTest { assertThat(params.getClusters().get(0).getEndpoints().get(0).getPort(), is(4080)); assertThat(params.getClusters().get(0).getEndpoints().get(0).isUseSsl(), is(false)); assertThat(params.getConnectionParams().getUseCompression(), is(false)); - assertThat(params.getConnectionParams().getNumPersistentConnectionsPerEndpoint(), is(16)); + assertThat(params.getConnectionParams().getNumPersistentConnectionsPerEndpoint(), is(1)); assertThat(params.getFeedParams().getRoute(), is("default")); assertThat(params.getFeedParams().getDataFormat(), is(FeedParams.DataFormat.XML_UTF8)); assertThat(params.getFeedParams().getLocalQueueTimeOut(), is(180000L)); |