Fixes a unit test that needed to account for WAN flooding.

This commit is contained in:
James Phillips 2017-03-15 13:13:15 -07:00
parent 91a861337b
commit 0cf9cf22ad
No known key found for this signature in database
GPG key ID: 77183E682AC5FC11

View file

@ -321,14 +321,14 @@ func TestServer_JoinSeparateLanAndWanAddresses(t *testing.T) {
// Check the WAN members on s1
testutil.WaitForResult(func() (bool, error) {
return len(s1.WANMembers()) == 2, nil
return len(s1.WANMembers()) == 3, nil
}, func(err error) {
t.Fatalf("bad len")
})
// Check the WAN members on s2
testutil.WaitForResult(func() (bool, error) {
return len(s2.WANMembers()) == 2, nil
return len(s2.WANMembers()) == 3, nil
}, func(err error) {
t.Fatalf("bad len")
})