Skip to content

Commit

Permalink
Merge pull request #12141 from mfojtik/increase-timeout
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Dec 5, 2016
2 parents ddc645f + 7d968f3 commit b2def44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/extended/idling/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func waitForEndpointsAvailable(oc *exutil.CLI, serviceName string) error {
return wait.Poll(200*time.Millisecond, 2*time.Minute, func() (bool, error) {
return wait.Poll(200*time.Millisecond, 3*time.Minute, func() (bool, error) {
ep, err := oc.KubeClient().Core().Endpoints(oc.Namespace()).Get(serviceName)
// Tolerate NotFound b/c it could take a moment for the endpoints to be created
if errors.TolerateNotFoundError(err) != nil {
Expand All @@ -22,7 +22,7 @@ func waitForEndpointsAvailable(oc *exutil.CLI, serviceName string) error {
}

func waitForNoPodsAvailable(oc *exutil.CLI) error {
return wait.Poll(200*time.Millisecond, 2*time.Minute, func() (bool, error) {
return wait.Poll(200*time.Millisecond, 3*time.Minute, func() (bool, error) {
//ep, err := oc.KubeClient().Core().Endpoints(oc.Namespace()).Get(serviceName)
pods, err := oc.KubeClient().Core().Pods(oc.Namespace()).List(kapi.ListOptions{})
if err != nil {
Expand Down

0 comments on commit b2def44

Please sign in to comment.