summaryrefslogtreecommitdiff
path: root/integration-cli/docker_cli_service_health_test.go
diff options
context:
space:
mode:
authorAaron Lehmann <aaron.lehmann@docker.com>2017-02-16 17:05:36 -0800
committerAaron Lehmann <aaron.lehmann@docker.com>2017-04-03 09:46:01 -0700
commit330a0035334871d92207b583c1c36d52a244753f (patch)
treee06b2a775d81068f8dad56c353d6a01df6308a1f /integration-cli/docker_cli_service_health_test.go
parent91c86c7e26c40ff3e422adcdd88d1649dd9dbc9b (diff)
downloaddocker-330a0035334871d92207b583c1c36d52a244753f.tar.gz
Synchronous service create and service update
Change "service create" and "service update" to wait until the creation or update finishes, when --detach=false is specified. Show progress bars for the overall operation and for each individual task (when there are a small enough number of tasks), unless "-q" / "--quiet" is specified. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Diffstat (limited to 'integration-cli/docker_cli_service_health_test.go')
-rw-r--r--integration-cli/docker_cli_service_health_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integration-cli/docker_cli_service_health_test.go b/integration-cli/docker_cli_service_health_test.go
index f7500fa387..9aa619897e 100644
--- a/integration-cli/docker_cli_service_health_test.go
+++ b/integration-cli/docker_cli_service_health_test.go
@@ -31,7 +31,7 @@ func (s *DockerSwarmSuite) TestServiceHealthRun(c *check.C) {
c.Check(err, check.IsNil)
serviceName := "healthServiceRun"
- out, err := d.Cmd("service", "create", "--name", serviceName, imageName, "top")
+ out, err := d.Cmd("service", "create", "--detach=true", "--name", serviceName, imageName, "top")
c.Assert(err, checker.IsNil, check.Commentf(out))
id := strings.TrimSpace(out)
@@ -92,7 +92,7 @@ func (s *DockerSwarmSuite) TestServiceHealthStart(c *check.C) {
c.Check(err, check.IsNil)
serviceName := "healthServiceStart"
- out, err := d.Cmd("service", "create", "--name", serviceName, imageName, "top")
+ out, err := d.Cmd("service", "create", "--detach=true", "--name", serviceName, imageName, "top")
c.Assert(err, checker.IsNil, check.Commentf(out))
id := strings.TrimSpace(out)