aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/tests/com/yahoo/jrt/InvokeErrorTest.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/InvokeErrorTest.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/InvokeErrorTest.java')
-rw-r--r--jrt/tests/com/yahoo/jrt/InvokeErrorTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/jrt/tests/com/yahoo/jrt/InvokeErrorTest.java b/jrt/tests/com/yahoo/jrt/InvokeErrorTest.java
index 3b58ba2f42e..0b75fe713c2 100644
--- a/jrt/tests/com/yahoo/jrt/InvokeErrorTest.java
+++ b/jrt/tests/com/yahoo/jrt/InvokeErrorTest.java
@@ -5,13 +5,15 @@ package com.yahoo.jrt;
import org.junit.After;
import org.junit.Before;
+import java.time.Duration;
+
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class InvokeErrorTest {
- final double timeout=60.0;
+ final Duration timeout = Duration.ofSeconds(60);
Supervisor server;
Acceptor acceptor;
Supervisor client;