use a buffer equivalent to grace period to eliminate test flakes

This modifies the test to wait up to 2x the grace period for the pod to
be removed.
This commit is contained in:
Todd Neal 2023-08-10 12:21:57 -05:00
parent 18c3c7efb3
commit e258228e4a

View File

@ -540,10 +540,10 @@ var _ = SIGDescribe("[NodeConformance] Containers Lifecycle ", func() {
} }
} }
// To account for the time it takes to delete the pod, we add a 10 second // To account for the time it takes to delete the pod, we add a buffer. Its sized
// buffer. The 10 second buffer is arbitrary, but it should be enough to // so that we allow up to 2x the grace time to delete the pod. Its extra large to
// account for the time it takes to delete the pod. // reduce test flakes.
bufferSeconds := int64(10) bufferSeconds := int64(30)
ginkgo.It("should respect termination grace period seconds [NodeConformance]", func() { ginkgo.It("should respect termination grace period seconds [NodeConformance]", func() {
client := e2epod.NewPodClient(f) client := e2epod.NewPodClient(f)