etcdserver: remove useless sleep

etcdserver.Do will block until there exists leader
This commit is contained in:
Yicheng Qin 2014-09-12 13:01:33 -07:00
parent 34db45a948
commit 54b9c55af3

View File

@ -53,11 +53,6 @@ func testServer(t *testing.T, ns int64) {
ss[i] = srv
}
// TODO: find fast way to trigger leader election
// TODO: introduce the way to know that the leader has been elected
// then remove this sleep.
time.Sleep(110 * time.Millisecond)
for i := 1; i <= 10; i++ {
r := pb.Request{
Method: "PUT",