Merge pull request #88796 from tanjunchen/remove-TODO-20200304

test/e2e/framework:remove TODO
This commit is contained in:
Kubernetes Prow Robot 2020-03-17 19:26:27 -07:00 committed by GitHub
commit fbdda693b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,8 +336,6 @@ func (config *NetworkingTestConfig) GetEndpointsFromContainer(protocol, containe
func (config *NetworkingTestConfig) DialFromNode(protocol, targetIP string, targetPort, maxTries, minTries int, expectedEps sets.String) {
var cmd string
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)
} else {
ipPort := net.JoinHostPort(targetIP, strconv.Itoa(targetPort))