mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
parent
8ec98fc26c
commit
b810fd2726
@ -160,7 +160,7 @@ var _ = framework.KubeDescribe("Kubelet", func() {
|
|||||||
buf.ReadFrom(rc)
|
buf.ReadFrom(rc)
|
||||||
hostsFileContent := buf.String()
|
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)
|
return fmt.Errorf("expected hosts file to contain entries from HostAliases. Got:\n%+v", hostsFileContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user