Skip to content
Permalink
Browse files
Update timeout methods (#91)
  • Loading branch information
DomGarguilo committed Mar 31, 2022
1 parent 6d0ab9f commit dd9d253b43a83e10d3fea1edef6d79acd4942a50
Showing 2 changed files with 6 additions and 4 deletions.
@@ -29,6 +29,7 @@
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 @@ private String getClientPropsFile() {
}

@Override
public int defaultTimeoutSeconds() {
return 6 * 60;
protected Duration defaultTimeout() {
return Duration.ofMinutes(6);
}

@Test
@@ -19,6 +19,7 @@
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 @@
public class MapReduceIT extends ConfigurableMacBase {

@Override
protected int defaultTimeoutSeconds() {
return 60;
protected Duration defaultTimeout() {
return Duration.ofMinutes(1);
}

@Override

0 comments on commit dd9d253

Please sign in to comment.