Skip to content

Commit fd5f5cc

Browse files
authored
Merge pull request kubernetes#88471 from claudiubelu/tests/fix-hybrid-network
tests: Fixes Hybrid cluster network test
2 parents 44cccbd + bb0a5ab commit fd5f5cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/windows/hybrid_network.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ var _ = SIGDescribe("Hybrid cluster network", func() {
5252
ginkgo.It("should have stable networking for Linux and Windows pods", func() {
5353
ginkgo.By("creating linux and windows pods")
5454
linuxPod := createTestPod(f, linuxBusyBoxImage, linuxOS)
55+
linuxPod = f.PodClient().CreateSync(linuxPod)
5556
windowsPod := createTestPod(f, windowsBusyBoximage, windowsOS)
5657
windowsPod.Spec.Containers[0].Args = []string{"test-webserver"}
58+
windowsPod = f.PodClient().CreateSync(windowsPod)
5759

5860
ginkgo.By("checking connectivity to 8.8.8.8 53 (google.com) from Linux")
5961
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 {
130132
},
131133
}
132134
}
133-
return f.PodClient().CreateSync(pod)
135+
return pod
134136
}

0 commit comments

Comments
 (0)