From ed7840ad50f31df143da18853b0a0059bf0e7216 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Wed, 10 Oct 2018 19:33:57 -0700 Subject: [PATCH] e2e: speed up DNS tests Poll a little more often, and use PollImmediate instead of Poll. --- test/e2e/network/dns_common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/network/dns_common.go b/test/e2e/network/dns_common.go index 7eae2a2dd2..73a9499593 100644 --- a/test/e2e/network/dns_common.go +++ b/test/e2e/network/dns_common.go @@ -495,7 +495,7 @@ func assertFilesExist(fileNames []string, fileDir string, pod *v1.Pod, client cl func assertFilesContain(fileNames []string, fileDir string, pod *v1.Pod, client clientset.Interface, check bool, expected string) { var failed []string - framework.ExpectNoError(wait.Poll(time.Second*10, time.Second*600, func() (bool, error) { + framework.ExpectNoError(wait.PollImmediate(time.Second*5, time.Second*600, func() (bool, error) { failed = []string{} ctx, cancel := context.WithTimeout(context.Background(), framework.SingleCallTimeout)