Merge pull request #86679 from oomichi/remove-invalid-dependency-27

Use e2epod.WaitForPodNameRunningInNamespace directly
This commit is contained in:
Kubernetes Prow Robot
2020-03-20 15:58:44 -07:00
committed by GitHub
23 changed files with 41 additions and 35 deletions

View File

@@ -565,7 +565,7 @@ func (config *NetworkingTestConfig) createTestPods() {
config.createPod(hostTestContainerPod)
}
framework.ExpectNoError(config.f.WaitForPodRunning(testContainerPod.Name))
framework.ExpectNoError(e2epod.WaitForPodNameRunningInNamespace(config.f.ClientSet, testContainerPod.Name, config.f.Namespace.Name))
var err error
config.TestContainerPod, err = config.getPodClient().Get(context.TODO(), testContainerPod.Name, metav1.GetOptions{})
@@ -574,7 +574,7 @@ func (config *NetworkingTestConfig) createTestPods() {
}
if config.HostNetwork {
framework.ExpectNoError(config.f.WaitForPodRunning(hostTestContainerPod.Name))
framework.ExpectNoError(e2epod.WaitForPodNameRunningInNamespace(config.f.ClientSet, hostTestContainerPod.Name, config.f.Namespace.Name))
config.HostTestContainerPod, err = config.getPodClient().Get(context.TODO(), hostTestContainerPod.Name, metav1.GetOptions{})
if err != nil {
framework.Failf("Failed to retrieve %s pod: %v", hostTestContainerPod.Name, err)