Skip to content

Commit

Permalink
Update cooldown period in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sushrk committed Dec 8, 2023
1 parent f3ad163 commit 3ed7c71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/perpodsg/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3ed7c71

Please sign in to comment.