From 9b0a4bfdb0e36e80f04e6e037739770dc2690b89 Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Wed, 6 Apr 2016 10:10:52 -0700 Subject: [PATCH] Fix DNS test for larger clusters On GKE, we scale the number of DNS pods based on the cluster size. For testing on larger clusters, relax the DNS pod check. --- test/e2e/dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/dns.go b/test/e2e/dns.go index e22f42b4104..0a1e53c9941 100644 --- a/test/e2e/dns.go +++ b/test/e2e/dns.go @@ -226,8 +226,8 @@ func verifyDNSPodIsRunning(f *framework.Framework) { if err != nil { framework.Failf("Failed to list all dns service pods") } - if len(dnsPods.Items) != 1 { - framework.Failf("Unexpected number of pods (%d) matches the label selector %v", len(dnsPods.Items), dnsServiceLabelSelector.String()) + if len(dnsPods.Items) < 1 { + framework.Failf("No pods match the label selector %v", dnsServiceLabelSelector.String()) } framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, dnsPods.Items[0].Name, api.NamespaceSystem)) }