Move wait_for_proxy to config.sh
This commit is contained in:
1 parent
6c7f860418
commit
671ed724d5
3 files changed
+12
-24
No files matched your search
@@ -8,18 +8,6 @@ check_attached() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_proxy() {
|
|
||||||
for i in $(seq 1 120); do
|
|
||||||
echo "Waiting for proxy to start"
|
|
||||||
if proxy docker_on $1 info > /dev/null 2>&1 ; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
echo "Timed out waiting for proxy to start" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
start_suite "Containers get same IP address on restart"
|
start_suite "Containers get same IP address on restart"
|
||||||
|
|
||||||
weave_on $HOST1 launch-router
|
weave_on $HOST1 launch-router
|
||||||
|
|||||||
@@ -9,18 +9,6 @@ check_attached() {
|
|||||||
assert_dns_record $HOST1 c1 $NAME $C2
|
assert_dns_record $HOST1 c1 $NAME $C2
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_proxy() {
|
|
||||||
for i in $(seq 1 120); do
|
|
||||||
echo "Waiting for proxy to start"
|
|
||||||
if proxy docker_on $1 info > /dev/null 2>&1 ; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
echo "Timed out waiting for proxy to start" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
N=50
|
N=50
|
||||||
# Create and remove a lot of containers in a small subnet; the failure
|
# Create and remove a lot of containers in a small subnet; the failure
|
||||||
# mode is that this takes a long time as it has to wait for the old
|
# mode is that this takes a long time as it has to wait for the old
|
||||||
|
|||||||
@@ -171,6 +171,18 @@ proxy_start_container_with_dns() {
|
|||||||
proxy docker_on $host run "$@" -dt $DNS_IMAGE /bin/sh
|
proxy docker_on $host run "$@" -dt $DNS_IMAGE /bin/sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wait_for_proxy() {
|
||||||
|
for i in $(seq 1 120); do
|
||||||
|
echo "Waiting for proxy to start"
|
||||||
|
if proxy docker_on $1 info > /dev/null 2>&1 ; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo "Timed out waiting for proxy to start" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
rm_containers() {
|
rm_containers() {
|
||||||
host=$1
|
host=$1
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in new issue
Block a user