mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Remove race of ClusterDns e2e frontend test and starting pod
This commit is contained in:
parent
d4602bb909
commit
d11a3930c0
@ -535,7 +535,13 @@ var _ = Describe("Examples e2e", func() {
|
|||||||
for _, ns := range namespaces {
|
for _, ns := range namespaces {
|
||||||
newKubectlCommand("create", "-f", "-", getNsCmdFlag(ns)).withStdinData(updatedPodYaml).exec()
|
newKubectlCommand("create", "-f", "-", getNsCmdFlag(ns)).withStdinData(updatedPodYaml).exec()
|
||||||
}
|
}
|
||||||
// remember that we cannot wait for the pods to be running because our pods terminate by themselves.
|
|
||||||
|
// wait until the pods have been scheduler, i.e. are not Pending anymore. Remember
|
||||||
|
// that we cannot wait for the pods to be running because our pods terminate by themselves.
|
||||||
|
for _, ns := range namespaces {
|
||||||
|
err := waitForPodNotPending(c, ns.Name, frontendPodName)
|
||||||
|
expectNoError(err)
|
||||||
|
}
|
||||||
|
|
||||||
// wait for pods to print their result
|
// wait for pods to print their result
|
||||||
for _, ns := range namespaces {
|
for _, ns := range namespaces {
|
||||||
|
Loading…
Reference in New Issue
Block a user