mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
wait for pod to be ready before continuing with the test
This test is flaky. I have noticed that this happens because the pod is not READY when it is being deleted at the end of the test. This fix ensures that the pod is READY before continuing with the rest of the test.
This commit is contained in:
parent
bae59799e9
commit
665df5794e
@ -90,7 +90,7 @@ func makePodToVerifyPids(baseName string, pidsLimit resource.Quantity) *v1.Pod {
|
||||
func runPodPidsLimitTests(f *framework.Framework) {
|
||||
ginkgo.It("should set pids.max for Pod", func(ctx context.Context) {
|
||||
ginkgo.By("by creating a G pod")
|
||||
pod := e2epod.NewPodClient(f).Create(ctx, &v1.Pod{
|
||||
pod := e2epod.NewPodClient(f).CreateSync(ctx, &v1.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: "pod" + string(uuid.NewUUID()),
|
||||
Namespace: f.Namespace.Name,
|
||||
|
Loading…
Reference in New Issue
Block a user