diff --git a/agent/consul/server_test.go b/agent/consul/server_test.go index 74dbf726ee..3a02308df2 100644 --- a/agent/consul/server_test.go +++ b/agent/consul/server_test.go @@ -767,8 +767,7 @@ func TestServer_RevokeLeadershipIdempotent(t *testing.T) { dir1, s1 := testServer(t) defer os.RemoveAll(dir1) defer s1.Shutdown() - - + testrpc.WaitForLeader(t, s1.RPC, "dc1") err:= s1.revokeLeadership()