Move wait_for_proxy to config.sh

This commit is contained in:
Martynas Pumputis committed 2016-05-12 12:15:20 +01:00
1 parent 6c7f860418
commit 671ed724d5
3 files changed
+12 -24

No files matched your search

-12
View File
@@ -8,18 +8,6 @@ check_attached() {
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"
weave_on $HOST1 launch-router
-12
View File
@@ -9,18 +9,6 @@ check_attached() {
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
# 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
+12
View File
@@ -171,6 +171,18 @@ proxy_start_container_with_dns() {
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() {
host=$1
shift