mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: move defer after run
This commit is contained in:
parent
45f56a5377
commit
ccee264b7d
@ -87,9 +87,9 @@ func TestNodeStepUnblock(t *testing.T) {
|
||||
// who is the current leader.
|
||||
func TestBlockProposal(t *testing.T) {
|
||||
n := newNode()
|
||||
defer n.Stop()
|
||||
r := newRaft(1, []int64{1}, 10, 1)
|
||||
go n.run(r)
|
||||
defer n.Stop()
|
||||
|
||||
errc := make(chan error, 1)
|
||||
go func() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user