From b810fd272627d81b26f1c40e63aa4b528688e1dd Mon Sep 17 00:00:00 2001 From: Bill Warshaw Date: Mon, 19 Nov 2018 20:52:04 -0500 Subject: [PATCH] Fix broken integration test around hostAliases * broken by ab507dfc1f0c824386ea6ca0efc1abe7968981fd --- test/e2e/common/kubelet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/common/kubelet.go b/test/e2e/common/kubelet.go index 09575cda512..7894fb10139 100644 --- a/test/e2e/common/kubelet.go +++ b/test/e2e/common/kubelet.go @@ -160,7 +160,7 @@ var _ = framework.KubeDescribe("Kubelet", func() { buf.ReadFrom(rc) hostsFileContent := buf.String() - if !strings.Contains(hostsFileContent, "123.45.67.89\tfoo") || !strings.Contains(hostsFileContent, "123.45.67.89\tbar") { + if !strings.Contains(hostsFileContent, "123.45.67.89\tfoo\tbar") { return fmt.Errorf("expected hosts file to contain entries from HostAliases. Got:\n%+v", hostsFileContent) }