aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/tests/com/yahoo/jrt/EchoTest.java
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2022-08-12 21:27:05 +0200
committerGitHub <noreply@github.com>2022-08-12 21:27:05 +0200
commit44b750efdb83be18d839ffc5495c4e02b87e0b0e (patch)
tree57ed2ba63feecb095844b9bc89c889d47b2faad8 /jrt/tests/com/yahoo/jrt/EchoTest.java
parent43830a7f7975080dbc4c25804a2506ab102c7868 (diff)
parentec64add133a3b25900fd25a266a2497e757f809e (diff)
Merge pull request #23647 from vespa-engine/balder/use-duration-as-timeout
Add method to use Duration as timeout to make unit explicit, and avoi…
Diffstat (limited to 'jrt/tests/com/yahoo/jrt/EchoTest.java')
-rw-r--r--jrt/tests/com/yahoo/jrt/EchoTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jrt/tests/com/yahoo/jrt/EchoTest.java b/jrt/tests/com/yahoo/jrt/EchoTest.java
index 47c6e806635..11742fa42e2 100644
--- a/jrt/tests/com/yahoo/jrt/EchoTest.java
+++ b/jrt/tests/com/yahoo/jrt/EchoTest.java
@@ -11,6 +11,7 @@ import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;
import java.security.cert.X509Certificate;
+import java.time.Duration;
import java.util.List;
import static com.yahoo.jrt.CryptoUtils.createTestTlsContext;
@@ -156,7 +157,7 @@ public class EchoTest {
for (int i = 0; i < refValues.size(); i++) {
p.add(refValues.get(i));
}
- target.invokeSync(req, 60.0);
+ target.invokeSync(req, Duration.ofSeconds(60));
assertTrue(req.checkReturnTypes("bBhHiIlLfFdDxXsS"));
assertTrue(Test.equals(req.returnValues(), req.parameters()));
assertTrue(Test.equals(req.returnValues(), refValues));