Skip to content

Commit

Permalink
Merge pull request #2949 from jackfrancis/e2e-delete-op-timeout
Browse files Browse the repository at this point in the history
Discrete timeout for service deletes in E2E
  • Loading branch information
k8s-ci-robot authored Dec 19, 2022
2 parents c1b8d85 + 16e28fe commit e401d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/azure_lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func AzureLBSpec(ctx context.Context, inputGetter func() AzureLBSpecInput) {
return err
}
return nil
}, retryableOperationTimeout, retryableOperationSleepBetweenRetries).Should(Succeed())
}, retryableDeleteOperationTimeout, retryableOperationSleepBetweenRetries).Should(Succeed())
Logf("waiting for the ilb service to be deleted: %s", ilbService.Name)
Eventually(func() bool {
_, err := servicesClient.Get(ctx, ilbService.GetName(), metav1.GetOptions{})
Expand Down Expand Up @@ -268,7 +268,7 @@ func AzureLBSpec(ctx context.Context, inputGetter func() AzureLBSpecInput) {
return err
}
return nil
}, retryableOperationTimeout, retryableOperationSleepBetweenRetries).Should(Succeed())
}, retryableDeleteOperationTimeout, retryableOperationSleepBetweenRetries).Should(Succeed())
Logf("waiting for the external LB service to be deleted: %s", elbService.Name)
Eventually(func() bool {
_, err := servicesClient.Get(ctx, elbService.GetName(), metav1.GetOptions{})
Expand Down
1 change: 1 addition & 0 deletions test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const (
sshPort = "22"
deleteOperationTimeout = 20 * time.Minute
retryableOperationTimeout = 30 * time.Second
retryableDeleteOperationTimeout = 3 * time.Minute
retryableOperationSleepBetweenRetries = 3 * time.Second
)

Expand Down

0 comments on commit e401d0b

Please sign in to comment.