Merge pull request #32866 from wojtek-t/decrease_namespace_creation_timeout

Automatic merge from submit-queue

Decrease timeout for namespace creation in test

If apiserver is unresponsive (e.g. because of crashloop or sth), we are wasting a lot of test time on retries.
This commit is contained in:
Kubernetes Submit Queue 2016-09-16 06:52:43 -07:00 committed by GitHub
commit 0dc72b7522

View File

@ -1027,7 +1027,7 @@ func CreateTestingNS(baseName string, c *client.Client, labels map[string]string
}
// Be robust about making the namespace creation call.
var got *api.Namespace
if err := wait.PollImmediate(Poll, SingleCallTimeout, func() (bool, error) {
if err := wait.PollImmediate(Poll, 30*time.Second, func() (bool, error) {
var err error
got, err = c.Namespaces().Create(namespaceObj)
if err != nil {