rpc: make TestServer_JoinSeparateLanAndWanAddresses more robust

This commit is contained in:
Frank Schroeder 2017-07-04 20:02:01 +02:00 committed by Frank Schröder
parent ae59198e38
commit 74d3c4d896
1 changed files with 2 additions and 2 deletions

View File

@ -316,10 +316,10 @@ func TestServer_JoinSeparateLanAndWanAddresses(t *testing.T) {
// Join s3 to s2 on lan
joinLAN(t, s3, s2)
retry.Run(t, func(r *retry.R) {
if got, want := len(s1.WANMembers()), 2; got != want {
if got, want := len(s1.WANMembers()), 3; got != want {
r.Fatalf("got %d s1 WAN members want %d", got, want)
}
if got, want := len(s2.WANMembers()), 2; got != want {
if got, want := len(s2.WANMembers()), 3; got != want {
r.Fatalf("got %d s2 WAN members want %d", got, want)
}
if got, want := len(s2.LANMembers()), 2; got != want {