mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
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:
parent
18c3c7efb3
commit
e258228e4a
@ -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
|
||||
// buffer. The 10 second buffer is arbitrary, but it should be enough to
|
||||
// account for the time it takes to delete the pod.
|
||||
bufferSeconds := int64(10)
|
||||
// To account for the time it takes to delete the pod, we add a buffer. Its sized
|
||||
// so that we allow up to 2x the grace time to delete the pod. Its extra large to
|
||||
// reduce test flakes.
|
||||
bufferSeconds := int64(30)
|
||||
|
||||
ginkgo.It("should respect termination grace period seconds [NodeConformance]", func() {
|
||||
client := e2epod.NewPodClient(f)
|
||||
|
Loading…
Reference in New Issue
Block a user