Browse Source

Merge pull request #3768 from yichengq/fix-publish-test

etcdserver: extend wait timeout in TestPublishRetry
Yicheng Qin 10 years ago
parent
commit
b5c176360e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      etcdserver/server_test.go

+ 2 - 1
etcdserver/server_test.go

@@ -1099,7 +1099,8 @@ func TestPublishRetry(t *testing.T) {
 		done:     make(chan struct{}),
 		reqIDGen: idutil.NewGenerator(0, time.Time{}),
 	}
-	time.AfterFunc(500*time.Microsecond, func() { close(srv.done) })
+	// TODO: use fakeClockwork
+	time.AfterFunc(10*time.Millisecond, func() { close(srv.done) })
 	srv.publish(10 * time.Nanosecond)
 
 	action := n.Action()