Skip to content

Commit

Permalink
other updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Oct 26, 2023
1 parent ef63a6d commit 44e2337
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration-tests/ccip-tests/testconfig/tomls/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 44e2337

Please sign in to comment.