Skip to content

Commit

Permalink
Merge pull request #124846 from saschagrunert/local-hostname
Browse files Browse the repository at this point in the history
Fix assertion for host network hostname e2e test
  • Loading branch information
k8s-ci-robot committed May 13, 2024
2 parents 51ad0bb + 104b5a0 commit 8e5b26b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/network/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,8 @@ var _ = common.SIGDescribe("DNS HostNetwork", func() {
stdout, err := e2eoutput.RunHostCmd(testAgnhostPod.Namespace, testAgnhostPod.Name, "hostname")
framework.ExpectNoError(err, "failed to run command hostname: %s", stdout)
hostname := strings.TrimSpace(stdout)
if node.Name != hostname {
framework.Failf("expected hostname: %s, got: %s", node.Name, hostname)
if dnsTestPodHostName == hostname {
framework.Failf("https://issues.k8s.io/67019 expected spec.Hostname %s to be ignored", hostname)
}
})

Expand Down

0 comments on commit 8e5b26b

Please sign in to comment.