|
|
@ -70,13 +70,13 @@ func TestClient_JoinLAN(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Check the members
|
|
|
|
// Check the members
|
|
|
|
if len(s1.LANMembers()) != 2 {
|
|
|
|
testutil.WaitForResult(func() (bool, error) {
|
|
|
|
t.Fatalf("bad len")
|
|
|
|
server_check := len(s1.LANMembers()) == 2
|
|
|
|
}
|
|
|
|
client_check := len(c1.LANMembers()) == 2
|
|
|
|
|
|
|
|
return server_check && client_check, nil
|
|
|
|
if len(c1.LANMembers()) != 2 {
|
|
|
|
}, func(err error) {
|
|
|
|
t.Fatalf("bad len")
|
|
|
|
t.Fatalf("bad len")
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
// Check we have a new consul
|
|
|
|
// Check we have a new consul
|
|
|
|
testutil.WaitForResult(func() (bool, error) {
|
|
|
|
testutil.WaitForResult(func() (bool, error) {
|
|
|
|