Skip to content

Commit

Permalink
Make test timeout configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
bouskaJ committed Mar 6, 2020
1 parent c7eef60 commit 871c75d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@

public class CamelKSteps {

private static final int MAX_ATTEMPTS = 150;
private static final long DELAY_BETWEEN_ATTEMPTS = 2000;
private static final int MAX_ATTEMPTS = System.getenv("TEST_MAX_ATTEMPTS") != null ? Integer.valueOf(System.getenv("TEST_MAX_ATTEMPTS")) : 150;
private static final long DELAY_BETWEEN_ATTEMPTS = System.getenv("TEST_DELAY_BETWEEN_ATTEMPTS") != null ? Long.valueOf(System.getenv("TEST_DELAY_BETWEEN_ATTEMPTS")) : 2000;

private KubernetesClient client;
private ObjectMapper obj = new ObjectMapper();

/** Logger */
private static final Logger LOG = LoggerFactory.getLogger(CamelKSteps.class);
private static final Logger LOG = LoggerFactory.getLogger(CamelKSteps.class);

@Given("^new integration with name ([a-z0-9_]+\\.[a-z0-9_]+) with configuration:$")
public void createNewIntegration(String name, Map<String, String> configuration) throws IOException {
Expand Down

0 comments on commit 871c75d

Please sign in to comment.