rpc: try shutting down leader first to avoid hang in TestLeader_LeftServer

This commit is contained in:
Frank Schroeder 2017-06-28 00:04:50 +02:00 committed by Frank Schröder
parent 2eb2941e8c
commit 96c03ce73b
1 changed files with 1 additions and 0 deletions

View File

@ -465,6 +465,7 @@ func TestLeader_LeftServer(t *testing.T) {
for _, s := range servers[1:] {
retry.Run(t, func(r *retry.R) { r.Check(wantPeers(s, 2)) })
}
s1.Shutdown()
}
func TestLeader_LeftLeader(t *testing.T) {