Skip to content

Commit af90f63

Browse files
sushrkyash97
authored andcommitted
Update cooldown period in test (#344)
1 parent 5588773 commit af90f63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/perpodsg/job_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121

2222
"github.com/aws/amazon-vpc-resource-controller-k8s/apis/vpcresources/v1beta1"
2323
"github.com/aws/amazon-vpc-resource-controller-k8s/pkg/config"
24+
"github.com/aws/amazon-vpc-resource-controller-k8s/pkg/provider/branch/cooldown"
2425
"github.com/aws/amazon-vpc-resource-controller-k8s/test/framework/manifest"
2526
"github.com/aws/amazon-vpc-resource-controller-k8s/test/framework/resource/k8s/controller"
2627
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,
321322

322323
By("waiting for the ENI to be cooled down and deleted")
323324
// Need to account for actual deletion of ENI + Cool down Period
324-
time.Sleep(config.CoolDownPeriod * 2)
325+
time.Sleep(cooldown.DefaultCoolDownPeriod * 2)
325326

326327
By("verifying the deleted Pod have their ENI deleted")
327328
verify.VerifyPodENIDeletedForAllPods(namespace, podLabelKey, podLabelVal)

0 commit comments

Comments
 (0)