Reverse order of 'start' and 'connect' in test so we don't hang waiting for consensus
This commit is contained in:
1 parent
2b617633ae
commit
ad0a5477f9
1 file changed
+3
-3
@@ -19,11 +19,11 @@ check "DefaultSubnet" "{{.IPAM.DefaultSubnet}}" $UNIVERSE
|
|||||||
check "Domain" "{{.DNS.Domain}}" "weave.local."
|
check "Domain" "{{.DNS.Domain}}" "weave.local."
|
||||||
|
|
||||||
assert_raises "weave_on $HOST1 status peers | grep nicknamington"
|
assert_raises "weave_on $HOST1 status peers | grep nicknamington"
|
||||||
weave_on $HOST1 connect 10.2.2.1
|
|
||||||
assert "weave_on $HOST1 status targets" "10.2.2.1"
|
|
||||||
assert "weave_on $HOST1 status connections | tr -s ' ' | cut -d ' ' -f 2" "10.2.2.1:6783"
|
|
||||||
start_container $HOST1 --name test
|
start_container $HOST1 --name test
|
||||||
assert "weave_on $HOST1 status dns | tr -s ' ' | cut -d ' ' -f 1" "test"
|
assert "weave_on $HOST1 status dns | tr -s ' ' | cut -d ' ' -f 1" "test"
|
||||||
assert_raises "weave_on $HOST1 report | grep nicknamington"
|
assert_raises "weave_on $HOST1 report | grep nicknamington"
|
||||||
|
weave_on $HOST1 connect 10.2.2.1
|
||||||
|
assert "weave_on $HOST1 status targets" "10.2.2.1"
|
||||||
|
assert "weave_on $HOST1 status connections | tr -s ' ' | cut -d ' ' -f 2" "10.2.2.1:6783"
|
||||||
|
|
||||||
end_suite
|
end_suite
|
||||||
Reference in new issue
Block a user