mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #4729 from xiang90/raft_fix
raft: remove unnecessary waitSchedule in test
This commit is contained in:
commit
86e43b4173
@ -207,13 +207,12 @@ func TestBlockProposal(t *testing.T) {
|
||||
}
|
||||
|
||||
n.Campaign(context.TODO())
|
||||
testutil.WaitSchedule()
|
||||
select {
|
||||
case err := <-errc:
|
||||
if err != nil {
|
||||
t.Errorf("err = %v, want %v", err, nil)
|
||||
}
|
||||
default:
|
||||
case <-time.After(10 * time.Second):
|
||||
t.Errorf("blocking proposal, want unblocking")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user