mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
integration: wait for task running in TestServiceHealthRun
Test can miss Starting state, so wait until its Running Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
ad398f132b
commit
2de05de98d
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ func (s *DockerSwarmSuite) TestServiceHealthRun(c *check.C) {
|
|||
waitAndAssert(c, defaultReconciliationTimeout, func(c *check.C) (interface{}, check.CommentInterface) {
|
||||
task = d.getTask(c, task.ID)
|
||||
return task.Status.State, nil
|
||||
}, checker.Equals, swarm.TaskStateStarting)
|
||||
}, checker.Equals, swarm.TaskStateRunning)
|
||||
containerID := task.Status.ContainerStatus.ContainerID
|
||||
|
||||
// wait for container to be healthy
|
||||
|
|
Loading…
Reference in a new issue