Skip to content

Commit

Permalink
Merge pull request #48764 from gmarek/automated-cherry-pick-of-#48683…
Browse files Browse the repository at this point in the history
…-upstream-release-1.7

Automated cherry pick of #48683
  • Loading branch information
wojtek-t authored Jul 12, 2017
2 parents 7d59f00 + 9725061 commit 3af77ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion federation/pkg/kubefed/init/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,11 @@ func tlsHandshake(t *testing.T, sCfg, cCfg *tls.Config) error {
}
}()

c, err := tls.Dial("tcp", s.Addr().String(), cCfg)
// workaround [::] not working in ipv4 only systems (https://github.com/golang/go/issues/18806)
// TODO: remove with Golang 1.9 with https://go-review.googlesource.com/c/45088/
addr := strings.TrimPrefix(s.Addr().String(), "[::]")

c, err := tls.Dial("tcp", addr, cCfg)
if err != nil {
// Intentionally not serializing the error received because we want to
// test for the failure case in the caller test function.
Expand Down

0 comments on commit 3af77ff

Please sign in to comment.