Fix test: committed image embeds WEAVE_CIDR

so we cannot run two of those containers at the same time.
Fixed by stopping the first one before we start the second.
This commit is contained in:
Bryan Boreham committed 2017-06-12 14:03:53 +00:00
1 parent ea098ac53e
commit f91a9c2562
1 file changed
+1
+1
View File
@@ -27,6 +27,7 @@ check_iface_ready 10.2.1.1/24
# Check committed containers only have one weavewait prepended
proxy_start_container $HOST1 --name c1 -e 'WEAVE_CIDR=10.2.1.1/24'
COMMITTED_IMAGE=$(proxy docker_on $HOST1 commit c1)
docker_on $HOST1 stop -t=1 c1
assert_raises "proxy docker_on $HOST1 run --name c2 $COMMITTED_IMAGE"
assert "entrypoint c2" "$(entrypoint $COMMITTED_IMAGE)"