Fix race condition in `TestHTTPAgentJoin_WAN`

pull/136/head
William Tisäter 11 years ago
parent a727c59e74
commit 8e6ae4019b

@ -169,9 +169,11 @@ func TestHTTPAgentJoin_WAN(t *testing.T) {
t.Fatalf("Err: %v", obj)
}
if len(a2.WANMembers()) != 2 {
testutil.WaitForResult(func() (bool, error) {
return len(a2.WANMembers()) == 2, nil
}, func(err error) {
t.Fatalf("should have 2 members")
}
})
}
func TestHTTPAgentForceLeave(t *testing.T) {

Loading…
Cancel
Save