mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
test/e2e/framework:remove TODO
This commit is contained in:
parent
aeb88b6ecd
commit
453a05c03e
@ -336,8 +336,6 @@ func (config *NetworkingTestConfig) GetEndpointsFromContainer(protocol, containe
|
|||||||
func (config *NetworkingTestConfig) DialFromNode(protocol, targetIP string, targetPort, maxTries, minTries int, expectedEps sets.String) {
|
func (config *NetworkingTestConfig) DialFromNode(protocol, targetIP string, targetPort, maxTries, minTries int, expectedEps sets.String) {
|
||||||
var cmd string
|
var cmd string
|
||||||
if protocol == "udp" {
|
if protocol == "udp" {
|
||||||
// TODO: It would be enough to pass 1s+epsilon to timeout, but unfortunately
|
|
||||||
// busybox timeout doesn't support non-integer values.
|
|
||||||
cmd = fmt.Sprintf("echo hostName | nc -w 1 -u %s %d", targetIP, targetPort)
|
cmd = fmt.Sprintf("echo hostName | nc -w 1 -u %s %d", targetIP, targetPort)
|
||||||
} else {
|
} else {
|
||||||
ipPort := net.JoinHostPort(targetIP, strconv.Itoa(targetPort))
|
ipPort := net.JoinHostPort(targetIP, strconv.Itoa(targetPort))
|
||||||
|
Loading…
Reference in New Issue
Block a user