mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
poll_interval to pollInterval
This commit is contained in:
parent
25d0352029
commit
a7a1f5871b
@ -71,9 +71,9 @@ var _ = SIGDescribe("Hybrid cluster network", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
duration = "10s"
|
duration = "10s"
|
||||||
poll_interval = "1s"
|
pollInterval = "1s"
|
||||||
timeout = 10 // seconds
|
timeout = 10 // seconds
|
||||||
)
|
)
|
||||||
|
|
||||||
func assertConsistentConnectivity(f *framework.Framework, podName string, os string, cmd []string) {
|
func assertConsistentConnectivity(f *framework.Framework, podName string, os string, cmd []string) {
|
||||||
@ -81,7 +81,7 @@ func assertConsistentConnectivity(f *framework.Framework, podName string, os str
|
|||||||
By(fmt.Sprintf("checking connectivity of %s-container in %s", os, podName))
|
By(fmt.Sprintf("checking connectivity of %s-container in %s", os, podName))
|
||||||
_, _, err := f.ExecCommandInContainerWithFullOutput(podName, os+"-container", cmd...)
|
_, _, err := f.ExecCommandInContainerWithFullOutput(podName, os+"-container", cmd...)
|
||||||
return err
|
return err
|
||||||
}, duration, poll_interval).ShouldNot(HaveOccurred())
|
}, duration, pollInterval).ShouldNot(HaveOccurred())
|
||||||
}
|
}
|
||||||
|
|
||||||
func linuxCheck(address string, port int) []string {
|
func linuxCheck(address string, port int) []string {
|
||||||
|
Loading…
Reference in New Issue
Block a user