Add sleeps in tests for topology gossip to propagate
The new weaveworks/mesh version defers topology updates by up to 1 second, so we can't expect to connect two nodes and immediately ping between them.
This commit is contained in:
1 parent
04680fc52c
commit
4da2501d7a
6 files changed
+21
-2
No files matched your search
@@ -15,6 +15,8 @@ weave_on $HOST2 launch $HOST1
|
||||
start_container_local_plugin $HOST1 --name=c1 --hostname=$C1_NAME --dns=$DNS_IP
|
||||
start_container_local_plugin $HOST2 --name=c2 --hostname=$C2_NAME --dns=$DNS_IP
|
||||
|
||||
sleep 2 # Allow topology to propagate
|
||||
|
||||
assert_raises "exec_on $HOST1 c1 $PING $C2_NAME"
|
||||
assert_raises "exec_on $HOST2 c2 $PING $C1_NAME"
|
||||
|
||||
|
||||
Reference in new issue
Block a user