Skip to content

Commit

Permalink
rebase: fix e2e curl failure
Browse files Browse the repository at this point in the history
Signed-off-by: tao.yang <[email protected]>
  • Loading branch information
ty-dc committed Jan 31, 2024
1 parent 6bae391 commit 4844abf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/e2e/performance/performance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,14 @@ var _ = Describe("performance test case", Serial, Label("performance"), func() {
defer cancel()
var curlCheckString string
if frame.Info.IpV6Enabled && !frame.Info.IpV4Enabled {
curlCheckString = fmt.Sprintf("curl -I -m 1 -g http://[%s]:80 --insecure", pod.Status.PodIP)
curlCheckString = fmt.Sprintf("curl --retry 10 -m 1 -g http://[%s]:80 --insecure", pod.Status.PodIP)
} else {
curlCheckString = fmt.Sprintf("curl -I -m 1 http://%s:80 --insecure", pod.Status.PodIP)
curlCheckString = fmt.Sprintf("curl --retry 10 -m 1 http://%s:80 --insecure", pod.Status.PodIP)
}

for _, node := range frame.Info.KindNodeList {
curlReturnResult, errCurl := frame.DockerExecCommand(ctx, node, curlCheckString)
Expect(errCurl).NotTo(HaveOccurred())
GinkgoWriter.Printf("Failed to execute the curl command on the node, error is %v", string(curlReturnResult))
Expect(errCurl).NotTo(HaveOccurred(), "Failed to execute the command %s on the node: %v", curlCheckString, string(curlReturnResult))
}
}

Expand Down

0 comments on commit 4844abf

Please sign in to comment.