Skip to content

Commit bb0a5ab

Browse files
committed
tests: Fixes Hybrid cluster network test
Previously, we've centralized several images into agnhost, including test-webserver. The Hybrid cluster network test was using the test-webserver image, and was updated to use agnhost, but without properly making it so it behaves like test-webserver, resulting in a failing test.
1 parent ca23b07 commit bb0a5ab

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)