This is an automated email from the ASF dual-hosted git repository. domgarguilo pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/accumulo-examples.git
The following commit(s) were added to refs/heads/main by this push: new dd9d253 Update timeout methods (#91) dd9d253 is described below commit dd9d253b43a83e10d3fea1edef6d79acd4942a50 Author: Dom G <domgargu...@apache.org> AuthorDate: Thu Mar 31 12:43:10 2022 -0400 Update timeout methods (#91) --- src/test/java/org/apache/accumulo/examples/ExamplesIT.java | 5 +++-- .../java/org/apache/accumulo/examples/mapreduce/MapReduceIT.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/accumulo/examples/ExamplesIT.java b/src/test/java/org/apache/accumulo/examples/ExamplesIT.java index 2840881..c5853b2 100644 --- a/src/test/java/org/apache/accumulo/examples/ExamplesIT.java +++ b/src/test/java/org/apache/accumulo/examples/ExamplesIT.java @@ -29,6 +29,7 @@ import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; +import java.time.Duration; import java.util.Arrays; import java.util.Iterator; import java.util.List; @@ -144,8 +145,8 @@ public class ExamplesIT extends AccumuloClusterHarness { } @Override - public int defaultTimeoutSeconds() { - return 6 * 60; + protected Duration defaultTimeout() { + return Duration.ofMinutes(6); } @Test diff --git a/src/test/java/org/apache/accumulo/examples/mapreduce/MapReduceIT.java b/src/test/java/org/apache/accumulo/examples/mapreduce/MapReduceIT.java index 1133195..740d08c 100644 --- a/src/test/java/org/apache/accumulo/examples/mapreduce/MapReduceIT.java +++ b/src/test/java/org/apache/accumulo/examples/mapreduce/MapReduceIT.java @@ -19,6 +19,7 @@ package org.apache.accumulo.examples.mapreduce; import static org.junit.jupiter.api.Assertions.assertEquals; import java.security.MessageDigest; +import java.time.Duration; import java.util.Base64; import java.util.Collections; import java.util.Map.Entry; @@ -45,8 +46,8 @@ import org.junit.jupiter.api.Test; public class MapReduceIT extends ConfigurableMacBase { @Override - protected int defaultTimeoutSeconds() { - return 60; + protected Duration defaultTimeout() { + return Duration.ofMinutes(1); } @Override