Tests prefer --ipalloc-init
This commit is contained in:
1 parent
af8f590646
commit
e355e50c0d
4 files changed
+9
-9
No files matched your search
@@ -5,14 +5,14 @@
|
||||
start_suite "Observers can't vote"
|
||||
|
||||
# Start network that doesn't have enough peers for consensus
|
||||
weave_on $HOST1 launch --init-peer-count=2
|
||||
weave_on $HOST2 launch --observer $HOST1
|
||||
weave_on $HOST1 launch --ipalloc-init consensus=2
|
||||
weave_on $HOST2 launch --ipalloc-init observer $HOST1
|
||||
|
||||
# Check that an allocation times out
|
||||
assert_raises "timeout 2 cat <( start_container $HOST1 )" 124
|
||||
|
||||
# Add another elector
|
||||
weave_on $HOST3 launch --init-peer-count=2 $HOST2
|
||||
weave_on $HOST3 launch --ipalloc-init consensus=2 $HOST2
|
||||
|
||||
# Check allocation succeeds
|
||||
assert_raises "timeout 10 cat <( start_container $HOST1 )"
|
||||
|
||||
Reference in new issue
Block a user