From 5e77245b0dd7b926f7fbf72e1856795792660b76 Mon Sep 17 00:00:00 2001 From: linyouchong Date: Thu, 19 Jul 2018 09:30:57 +0800 Subject: [PATCH] GetMasterHost should not return port --- test/e2e/framework/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 4046e9f7fea..b2c0242f267 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -272,7 +272,7 @@ type ContainerFailures struct { func GetMasterHost() string { masterUrl, err := url.Parse(TestContext.Host) ExpectNoError(err) - return masterUrl.Host + return masterUrl.Hostname() } func nowStamp() string {