@@ -81,7 +81,7 @@ func EnsureOutboundInternetAccess(clientset *kubernetes.Clientset, config *restc
8181func EnsureConnectivityResultBetweenPods (clientset * kubernetes.Clientset , config * restclient.Config , fromPods []v1.Pod , toPods []v1.Pod , shouldHaveConnection bool ) {
8282 for _ , fromPod := range fromPods {
8383 for _ , toPod := range toPods {
84- command := []string {"curl" , toPod .Status .PodIP }
84+ command := []string {"curl" , "-S" , "-s" , "-o" , "/dev/null" , toPod .Status .PodIP }
8585 err := e2e_pod .Exec (clientset , config , fromPod , command )
8686 if shouldHaveConnection {
8787 Expect (err ).NotTo (HaveOccurred ())
@@ -93,7 +93,7 @@ func EnsureConnectivityResultBetweenPods(clientset *kubernetes.Clientset, config
9393}
9494
9595func CheckOutboundConnection (clientset * kubernetes.Clientset , config * restclient.Config , pod v1.Pod ) error {
96- command := []string {"curl" , "www.bing.com" }
96+ command := []string {"curl" , "-S" , "-s" , "-o" , "/dev/null" , " www.bing.com" }
9797 return e2e_pod .Exec (clientset , config , pod , command )
9898}
9999
0 commit comments