From 4d28ad36ca6b77034ae73e9e38ed247cbc8aeda6 Mon Sep 17 00:00:00 2001 From: Yu-Ju Hong Date: Wed, 1 Apr 2015 08:34:14 -0700 Subject: [PATCH] Increase the timeouts in integration test There has been test flakes on Shippable caused by timeout waiting for pods to be running. Increase the timeouts to alleviate the problem. --- cmd/integration/integration.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/integration/integration.go b/cmd/integration/integration.go index 372e7edff2373..30478ed4a866b 100644 --- a/cmd/integration/integration.go +++ b/cmd/integration/integration.go @@ -389,13 +389,13 @@ containers: } // Delete the mirror pod, and wait for it to be recreated. c.Pods(namespace).Delete(podName) - if err = wait.Poll(time.Second, time.Second*30, + if err = wait.Poll(time.Second, time.Minute*1, podRunning(c, namespace, podName)); err != nil { glog.Fatalf("%s FAILED: mirror pod has not been re-created or is not running: %v", desc, err) } // Remove the manifest file, and wait for the mirror pod to be deleted. os.Remove(manifestFile.Name()) - if err = wait.Poll(time.Second, time.Second*30, + if err = wait.Poll(time.Second, time.Minute*1, podNotFound(c, namespace, podName)); err != nil { glog.Fatalf("%s FAILED: mirror pod has not been deleted: %v", desc, err) } @@ -851,7 +851,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) { if err != nil { glog.Fatalf("Failed to create pod: %v, %v", pod, err) } - if err := wait.Poll(time.Second, time.Second*10, podRunning(client, foo.Namespace, foo.Name)); err != nil { + if err := wait.Poll(time.Second, time.Second*30, podRunning(client, foo.Namespace, foo.Name)); err != nil { glog.Fatalf("FAILED: pod never started running %v", err) } @@ -860,7 +860,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) { if err != nil { glog.Fatalf("Failed to create pod: %v, %v", pod, err) } - if err := wait.Poll(time.Second, time.Second*10, podRunning(client, bar.Namespace, bar.Name)); err != nil { + if err := wait.Poll(time.Second, time.Second*30, podRunning(client, bar.Namespace, bar.Name)); err != nil { glog.Fatalf("FAILED: pod never started running %v", err) } @@ -875,7 +875,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) { if err != nil { glog.Fatalf("Failed to create pod: %v, %v", pod, err) } - if err := wait.Poll(time.Second, time.Second*10, podRunning(client, baz.Namespace, baz.Name)); err != nil { + if err := wait.Poll(time.Second, time.Second*30, podRunning(client, baz.Namespace, baz.Name)); err != nil { glog.Fatalf("FAILED: (Scheduler probably didn't process deletion of 'phantom.bar') Pod never started running: %v", err) }