rpc: make TestServer_JoinSeparateLanAndWanAddresses more robust

pull/3241/head
Frank Schroeder 2017-07-04 20:02:01 +02:00 committed by Frank Schröder
parent ffd45f5da5
commit 112bc19cd5
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 {