summaryrefslogtreecommitdiffstats
path: root/metrics-proxy
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-04 16:16:28 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2022-05-05 07:37:09 +0200
commit3e4e6abc7dc21e6eabbc5c1aefe620dfb66eba8b (patch)
treeaa6d5afc222d5f39267c9c5d84ec9a429c99a2c5 /metrics-proxy
parentf4ed0dcf4d2b2ffc0f44180c3416a281a5f50bd6 (diff)
Increase timeout from 20s to 60s to allow overloaded nodes a chance to complete within timeout.
Diffstat (limited to 'metrics-proxy')
-rw-r--r--metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcHealthMetricsTest.java3
-rw-r--r--metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcMetricsTest.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcHealthMetricsTest.java b/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcHealthMetricsTest.java
index 98fa337fa78..9a625c57628 100644
--- a/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcHealthMetricsTest.java
+++ b/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcHealthMetricsTest.java
@@ -33,6 +33,7 @@ public class RpcHealthMetricsTest {
getFileContents("health-check-failed.response.json");
private static final String WANTED_RPC_RESPONSE =
getFileContents("rpc-json-output-check.json").trim();
+ private static final double RPC_INVOKE_TIMEOUT = 60.0;
@Test
public void expected_response_is_returned() {
@@ -74,7 +75,7 @@ public class RpcHealthMetricsTest {
req.parameters().add(new StringValue(service));
String returnValue;
- target.invokeSync(req, 20.0);
+ target.invokeSync(req, RPC_INVOKE_TIMEOUT);
if (req.checkReturnTypes("s")) {
returnValue = req.returnValues().get(0).asString();
} else {
diff --git a/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcMetricsTest.java b/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcMetricsTest.java
index beb0d3fce60..ba553a45260 100644
--- a/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcMetricsTest.java
+++ b/metrics-proxy/src/test/java/ai/vespa/metricsproxy/rpc/RpcMetricsTest.java
@@ -43,6 +43,7 @@ public class RpcMetricsTest {
private static final String METRICS_RESPONSE = getFileContents("metrics-storage-simple.json").trim();
private static final String EXTRA_APP = "extra";
+ private static final double RPC_INVOKE_TIMEOUT = 60.0;
private static class RpcClient implements AutoCloseable {
private final Supervisor supervisor;
@@ -245,7 +246,7 @@ public class RpcMetricsTest {
private static String invoke(Request req, RpcClient client, boolean expectReturnValue) {
String returnValue;
- client.target.invokeSync(req, 20.0);
+ client.target.invokeSync(req, RPC_INVOKE_TIMEOUT);
if (req.checkReturnTypes("s")) {
returnValue = req.returnValues().get(0).asString();
} else if (expectReturnValue) {