rpc: fix TestServer_Leave
rpc: fix TestServer_Leave

wait for the leader election.

zeroae/consul,scalp42/consul,hashicorp/consul,youhong316/consul,42wim/consul,tugbabodrumlu/consul,i0rek/consul,i0rek/consul,calgaryscientific/consul,calgaryscientific/consul,zeroae/consul,tugbabodrumlu/consul,i0rek/consul,calgaryscientific/consul,scalp42/consul,tugbabodrumlu/consul,tugbabodrumlu/consul,vamage/consul,42wim/consul,42wim/consul,zeroae/consul,scalp42/consul,i0rek/consul,zeroae/consul,youhong316/consul,tugbabodrumlu/consul,kingland/consul,kingland/consul,hashicorp/consul,hashicorp/consul,youhong316/consul,i0rek/consul,youhong316/consul,scalp42/consul,kingland/consul,vamage/consul,42wim/consul,calgaryscientific/consul,vamage/consul,zeroae/consul,calgaryscientific/consul,kingland/consul,youhong316/consul,scalp42/consul,42wim/consul,kingland/consul,hashicorp/consul,vamage/consul,vamage/consul