e2e: speed up DNS tests

Poll a little more often, and use PollImmediate instead of Poll.
pull/58/head
Justin Santa Barbara 2018-10-10 19:33:57 -07:00
parent 6b9de2bdc7
commit ed7840ad50
1 changed files with 1 additions and 1 deletions

View File

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