raft: remove unnecessary waitSchedule in test

This commit is contained in:
Xiang Li 2016-03-09 09:18:49 -08:00
parent a4624666fe
commit aa59e7518e

View File

@ -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")
}
}