Browse Source

etcdserver: remove useless sleep

etcdserver.Do will block until there exists leader
Yicheng Qin 11 years ago
parent
commit
54b9c55af3
1 changed files with 0 additions and 5 deletions
  1. 0 5
      etcdserver/server_test.go

+ 0 - 5
etcdserver/server_test.go

@@ -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",