Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Fix flaky test 320
Browse files Browse the repository at this point in the history
The intention, per the comments, is that host1 should claim from host2.
But host2 and host3 can carve up the space either way round.  If host1
claims from host3 then there is a race whether anyone finds out about
it.
Adding a 'prime' on host2 ensures the space is all owned by host2 at that point.
  • Loading branch information
bboreham committed Feb 13, 2017
1 parent fde7dcd commit 293abd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/320_claim_3_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ delete_persistence $HOST1 $HOST2
# Now make host1 attempt to claim from host2, when host2 is stopped
# the point being to check whether host1 will hang trying to talk to host2
weave_on $HOST2 launch-router --ipalloc-range $UNIVERSE
weave_on $HOST2 prime
# Introduce host3 to remember the IPAM CRDT when we stop host2
weave_on $HOST3 launch-router --ipalloc-range $UNIVERSE $HOST2
weave_on $HOST3 prime
Expand Down

0 comments on commit 293abd9

Please sign in to comment.