diff --git a/consul/client_test.go b/consul/client_test.go index 02a8db0bc8..1f41eba774 100644 --- a/consul/client_test.go +++ b/consul/client_test.go @@ -95,7 +95,7 @@ func TestClient_JoinLAN(t *testing.T) { // Check we have a new consul testutil.WaitForResult(func() (bool, error) { - return len(c1.consuls) == 1, nil + return len(c1.consulServers) == 1, nil }, func(err error) { t.Fatalf("expected consul server") })