Fix broken integration test around hostAliases

* broken by ab507dfc1f
This commit is contained in:
Bill Warshaw 2018-11-19 20:52:04 -05:00
parent 8ec98fc26c
commit b810fd2726

View File

@ -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)
}