diff --git a/test/e2e/windows/hybrid_network.go b/test/e2e/windows/hybrid_network.go index e02299fa596..2c28fe897eb 100644 --- a/test/e2e/windows/hybrid_network.go +++ b/test/e2e/windows/hybrid_network.go @@ -52,8 +52,10 @@ var _ = SIGDescribe("Hybrid cluster network", func() { ginkgo.It("should have stable networking for Linux and Windows pods", func() { ginkgo.By("creating linux and windows pods") linuxPod := createTestPod(f, linuxBusyBoxImage, linuxOS) + linuxPod = f.PodClient().CreateSync(linuxPod) windowsPod := createTestPod(f, windowsBusyBoximage, windowsOS) windowsPod.Spec.Containers[0].Args = []string{"test-webserver"} + windowsPod = f.PodClient().CreateSync(windowsPod) ginkgo.By("checking connectivity to 8.8.8.8 53 (google.com) from Linux") assertConsistentConnectivity(f, linuxPod.ObjectMeta.Name, linuxOS, linuxCheck("8.8.8.8", 53)) @@ -130,5 +132,5 @@ func createTestPod(f *framework.Framework, image string, os string) *v1.Pod { }, } } - return f.PodClient().CreateSync(pod) + return pod }