From 91296c708d7b1b37ddf68ca36b8c71b4af8bdaec Mon Sep 17 00:00:00 2001 From: AnieeG Date: Wed, 25 Oct 2023 13:07:05 -0700 Subject: [PATCH] handle blank TTL --- integration-tests/ccip-tests/testsetups/ccip.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/integration-tests/ccip-tests/testsetups/ccip.go b/integration-tests/ccip-tests/testsetups/ccip.go index f8e04687ce..a339a1e744 100644 --- a/integration-tests/ccip-tests/testsetups/ccip.go +++ b/integration-tests/ccip-tests/testsetups/ccip.go @@ -653,14 +653,15 @@ func CCIPDefaultTestSetUp( LocalCluster: local, } } else { + envConfig := &environment.Config{ + NamespacePrefix: envName, + Test: t, + } + if inputs.EnvInput.TTL != nil { + envConfig.TTL = inputs.EnvInput.TTL.Duration() + } // deploy the env if configureCLNode is true - k8Env = DeployEnvironments( - t, - &environment.Config{ - TTL: inputs.EnvInput.TTL.Duration(), - NamespacePrefix: envName, - Test: t, - }, inputs) + k8Env = DeployEnvironments(t, envConfig, inputs) ccipEnv = &actions.CCIPTestEnv{K8Env: k8Env} }