Skip to content

Commit

Permalink
Merge pull request #1777 from swetharepakula/extend-test-timeout
Browse files Browse the repository at this point in the history
Increase timeouts to reflect GCE API
  • Loading branch information
k8s-ci-robot authored Aug 13, 2022
2 parents 9a7a6aa + e141aeb commit 09c54ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/e2e-test/draining_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

const (
drainingTransitionPollTimeout = 10 * time.Minute
drainingTransitionPollTimeout = 15 * time.Minute
drainingTansitionPollInterval = 30 * time.Second
)

Expand Down
7 changes: 5 additions & 2 deletions pkg/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const (

negPollInterval = 5 * time.Second
negPollTimeout = 3 * time.Minute
negGCPollTimeout = 5 * time.Minute
negGCPollTimeout = 6 * time.Minute

k8sApiPoolInterval = 10 * time.Second
k8sApiPollTimeout = 30 * time.Minute
Expand All @@ -85,6 +85,9 @@ const (

redirectURLMapPollTimeout = 10 * time.Minute

// timeout for ILB creation + SA creation
saPollTimeout = 10 * time.Minute

healthyState = "HEALTHY"
)

Expand Down Expand Up @@ -962,7 +965,7 @@ func DeleteNegCR(s *Sandbox, negName string) error {
// created and properly configured
func WaitForServiceAttachment(s *Sandbox, saName string) (string, error) {
var gceSAURL string
err := wait.Poll(negPollInterval, negPollTimeout, func() (bool, error) {
err := wait.Poll(negPollInterval, saPollTimeout, func() (bool, error) {
saCR, err := s.f.SAClient.Get(s.Namespace, saName)
if saCR == nil || err != nil {
return false, fmt.Errorf("failed to get service attachment %s/%s: %v", s.Namespace, saName, err)
Expand Down

0 comments on commit 09c54ff

Please sign in to comment.