Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Increase timeout of install.IsRunning #6

Merged
merged 1 commit into from
Dec 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const (
// TimeoutDefault is the default install timeout.
TimeoutDefault = 30 * time.Second

// installWaitNumMaxPolls is the maximum number of API operations to be
// performed in sequence while waiting for the component to be installed.
installWaitNumMaxPolls = 60

fryKey = "com.docker.fry"
imageTagKey = "com.docker.image-tag"
namespaceKey = "com.docker.deploy-namespace"
Expand Down Expand Up @@ -171,7 +175,7 @@ func IsRunning(config *rest.Config) (bool, error) {
if err != nil {
return false, err
}
err = wait.For(10, func() (bool, error) {
err = wait.For(installWaitNumMaxPolls, func() (bool, error) {
_, err := stackClient.ComposeV1beta2().Stacks("e2e").List(metav1.ListOptions{})
if err != nil {
return false, nil
Expand Down