From 3ed7c71b32ca087cbd7eb9f5934008b0f2c60b02 Mon Sep 17 00:00:00 2001 From: Sushmitha Ravikumar Date: Fri, 8 Dec 2023 17:56:26 +0000 Subject: [PATCH] Update cooldown period in test --- test/integration/perpodsg/job_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/perpodsg/job_test.go b/test/integration/perpodsg/job_test.go index ea6b6ae9..2382f954 100644 --- a/test/integration/perpodsg/job_test.go +++ b/test/integration/perpodsg/job_test.go @@ -21,6 +21,7 @@ import ( "github.com/aws/amazon-vpc-resource-controller-k8s/apis/vpcresources/v1beta1" "github.com/aws/amazon-vpc-resource-controller-k8s/pkg/config" + "github.com/aws/amazon-vpc-resource-controller-k8s/pkg/provider/branch/cooldown" "github.com/aws/amazon-vpc-resource-controller-k8s/test/framework/manifest" "github.com/aws/amazon-vpc-resource-controller-k8s/test/framework/resource/k8s/controller" sgpWrapper "github.com/aws/amazon-vpc-resource-controller-k8s/test/framework/resource/k8s/sgp" @@ -321,7 +322,7 @@ func VerifyJobNetworkingRemovedOnCompletion(jobs map[string][]*batchV1.Job, By("waiting for the ENI to be cooled down and deleted") // Need to account for actual deletion of ENI + Cool down Period - time.Sleep(config.CoolDownPeriod * 2) + time.Sleep(cooldown.DefaultCoolDownPeriod * 2) By("verifying the deleted Pod have their ENI deleted") verify.VerifyPodENIDeletedForAllPods(namespace, podLabelKey, podLabelVal)