mirror of https://github.com/docker/docs.git
integration: give zk some extra time.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
3d6f833f6f
commit
6fbbfd7287
|
|
@ -36,11 +36,11 @@ function teardown() {
|
||||||
# Start 2 engines and make them join the cluster.
|
# Start 2 engines and make them join the cluster.
|
||||||
start_docker 2
|
start_docker 2
|
||||||
swarm_join "$DISCOVERY"
|
swarm_join "$DISCOVERY"
|
||||||
retry 5 1 discovery_check_swarm_list "$DISCOVERY"
|
retry 10 1 discovery_check_swarm_list "$DISCOVERY"
|
||||||
|
|
||||||
# Then, start a manager and ensure it sees all the engines.
|
# Then, start a manager and ensure it sees all the engines.
|
||||||
swarm_manage "$DISCOVERY"
|
swarm_manage "$DISCOVERY"
|
||||||
retry 5 1 discovery_check_swarm_info
|
retry 10 1 discovery_check_swarm_info
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "zk discovery: watch for changes" {
|
@test "zk discovery: watch for changes" {
|
||||||
|
|
@ -55,8 +55,8 @@ function teardown() {
|
||||||
# Add engines to the cluster and make sure it's picked up by swarm.
|
# Add engines to the cluster and make sure it's picked up by swarm.
|
||||||
start_docker 2
|
start_docker 2
|
||||||
swarm_join "$DISCOVERY"
|
swarm_join "$DISCOVERY"
|
||||||
retry 5 1 discovery_check_swarm_list "$DISCOVERY"
|
retry 10 1 discovery_check_swarm_list "$DISCOVERY"
|
||||||
retry 5 1 discovery_check_swarm_info
|
retry 10 1 discovery_check_swarm_info
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "zk discovery: failure" {
|
@test "zk discovery: failure" {
|
||||||
|
|
@ -76,6 +76,6 @@ function teardown() {
|
||||||
start_store
|
start_store
|
||||||
|
|
||||||
# After a while, `join` and `manage` should reach the store.
|
# After a while, `join` and `manage` should reach the store.
|
||||||
retry 5 1 discovery_check_swarm_list "$DISCOVERY"
|
retry 10 1 discovery_check_swarm_list "$DISCOVERY"
|
||||||
retry 5 1 discovery_check_swarm_info
|
retry 10 1 discovery_check_swarm_info
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue