diff options
author | Harald Musum <musum@verizonmedia.com> | 2022-08-12 21:27:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 21:27:05 +0200 |
commit | 44b750efdb83be18d839ffc5495c4e02b87e0b0e (patch) | |
tree | 57ed2ba63feecb095844b9bc89c889d47b2faad8 /jrt/tests/com/yahoo/jrt/InvokeErrorTest.java | |
parent | 43830a7f7975080dbc4c25804a2506ab102c7868 (diff) | |
parent | ec64add133a3b25900fd25a266a2497e757f809e (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.java | 4 |
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; |