Files
docker-cli/components/engine/integration-cli
Brian Goff 5a19e582d6 Fix race in TestApiSwarmRestartCluster
In `TestApiSwarmRestartCluster`, it's calling `checkClusterHealth`.
`checkClusterHealth` calls `d.info()`, which will return an error if
there is no cluster leader... problem is `checkClusterHealth` is doing a
nil error assertion w/o giving any time for a leader to be elected.

This moves the `d.info()` call into a `waitAndAssert` using the default
reconciliation timeout.

It also moves some other checks into a `waitAndAssert` to give the
cluster enough time to come back up.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: fdcde8bb65acf2c459e93678bf2659139ef5e918
Component: engine
2016-07-26 14:37:18 -04:00
..
2016-06-13 22:16:18 -07:00
2016-06-12 17:23:19 +02:00
2016-06-02 17:17:22 +08:00
2016-06-28 15:29:49 -07:00
2016-07-21 19:39:35 -07:00
2016-06-02 17:17:22 +08:00
2016-06-02 17:17:22 +08:00
2016-04-26 19:22:48 +08:00
2016-07-23 11:32:23 +08:00
2016-06-02 17:17:22 +08:00
2016-07-23 11:32:23 +08:00
2016-03-08 07:55:01 -08:00