rpc: try shutting down leader first to avoid hang in TestLeader_LeftServer
This commit is contained in:
parent
2eb2941e8c
commit
96c03ce73b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue