From 44e23379b21829f424aef467d64bfb47aa3ce9dc Mon Sep 17 00:00:00 2001 From: AnieeG Date: Thu, 26 Oct 2023 16:11:14 -0700 Subject: [PATCH] other updates --- .../ccip-tests/testconfig/tomls/default.toml | 1 + integration-tests/ccip-tests/testsetups/ccip.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/integration-tests/ccip-tests/testconfig/tomls/default.toml b/integration-tests/ccip-tests/testconfig/tomls/default.toml index 82fa803182..392e6ecc0a 100644 --- a/integration-tests/ccip-tests/testconfig/tomls/default.toml +++ b/integration-tests/ccip-tests/testconfig/tomls/default.toml @@ -3,6 +3,7 @@ [CCIP] # all variables to set up the test environment [CCIP.Env] +TTL = '5h' # networks between which lanes will be set up and the messages will be sent # if more than 2 networks are specified, then lanes will be set up between all possible pairs of networks # default value is ['SIMULATED_1', 'SIMULATED_2'] which means that test will create two private geth networks from scratch and set up lanes between them diff --git a/integration-tests/ccip-tests/testsetups/ccip.go b/integration-tests/ccip-tests/testsetups/ccip.go index d56601d5e5..4b25dd5c86 100644 --- a/integration-tests/ccip-tests/testsetups/ccip.go +++ b/integration-tests/ccip-tests/testsetups/ccip.go @@ -668,6 +668,14 @@ func CCIPDefaultTestSetUp( if inputs.EnvInput.TTL != nil { envConfig.TTL = inputs.EnvInput.TTL.Duration() } + + if inputs.TestGroupInput.TestDuration != nil { + approxDur := inputs.TestGroupInput.TestDuration.Duration() + 1*time.Hour + if envConfig.TTL < approxDur { + envConfig.TTL = approxDur + } + } + // deploy the env if configureCLNode is true k8Env = DeployEnvironments(t, envConfig, inputs) ccipEnv = &actions.CCIPTestEnv{K8Env: k8Env}