summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2019-07-05 16:53:31 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-07-05 16:53:33 +0200
commit2da27ba7661ac5d74c43d38b3d5bc5b1fccb0968 (patch)
tree77c99f106dd1799e6a5383883012f32c1c5d1789
parent23303b94e954b29d10350a5ad3dc585daac95a48 (diff)
Use a valid timeout
0 actually meant 0 seconds timeout.
-rw-r--r--config-proxy/src/test/java/com/yahoo/vespa/config/proxy/ConfigProxyRpcServerTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/config-proxy/src/test/java/com/yahoo/vespa/config/proxy/ConfigProxyRpcServerTest.java b/config-proxy/src/test/java/com/yahoo/vespa/config/proxy/ConfigProxyRpcServerTest.java
index ffaf5bafc59..48456d8ac23 100644
--- a/config-proxy/src/test/java/com/yahoo/vespa/config/proxy/ConfigProxyRpcServerTest.java
+++ b/config-proxy/src/test/java/com/yahoo/vespa/config/proxy/ConfigProxyRpcServerTest.java
@@ -15,6 +15,8 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
+import java.time.Duration;
+
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
@@ -295,7 +297,7 @@ public class ConfigProxyRpcServerTest {
}
void invoke(Request request) {
- target.invokeSync(request, 0/*no timeout*/);
+ target.invokeSync(request, Duration.ofMinutes(10).getSeconds());
}
@Override