cosmetic: s/weave_stop_router/stop_router_on
Also run `weave stop-router` as part of this, so conntrack cleanup happens.
This commit is contained in:
1 parent
c22d824db8
commit
25486f7b4d
2 files changed
+4
-3
No files matched your search
@@ -33,7 +33,7 @@ assert_raises "exec_on $HOST1 c1 $PING $C2"
|
||||
|
||||
# Forget everyone and disconnect
|
||||
assert_raises "weave_on $HOST2 forget $HOST1 $HOST2"
|
||||
assert_raises "weave_stop_router $HOST1"
|
||||
assert_raises "weave_stop_on $HOST1"
|
||||
assert_raises "weave_on $HOST1 launch-router"
|
||||
assert_peers $HOST2 ""
|
||||
assert_raises "exec_on $HOST1 c1 sh -c '! $PING $C2'"
|
||||
|
||||
+3
-2
@@ -113,13 +113,14 @@ weave_on() {
|
||||
DOCKER_HOST=tcp://$host:$DOCKER_PORT $WEAVE "$@"
|
||||
}
|
||||
|
||||
weave_stop_router() {
|
||||
stop_router_on() {
|
||||
host=$1
|
||||
shift 1
|
||||
docker_on $host stop weave 1>/dev/null 2>&1 || true
|
||||
if [ -n "$COVERAGE" ] ; then
|
||||
collect_coverage $host
|
||||
fi
|
||||
weave_on $host stop-router 2>/dev/null
|
||||
}
|
||||
|
||||
exec_on() {
|
||||
@@ -206,7 +207,7 @@ start_suite() {
|
||||
end_suite() {
|
||||
whitely assert_end
|
||||
for host in $HOSTS; do
|
||||
weave_stop_router $host
|
||||
stop_router_on $host
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user