CreateClient->NewClient

release-0.4
Xiang Li 2013-08-02 09:54:59 -07:00
parent 773ee61fb2
commit 3683992183
2 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ func TestSingleNode(t *testing.T) {
time.Sleep(time.Second)
c := etcd.CreateClient()
c := etcd.NewClient()
c.SyncCluster()
// Test Set
@ -66,7 +66,7 @@ func TestSingleNodeRecovery(t *testing.T) {
time.Sleep(time.Second)
c := etcd.CreateClient()
c := etcd.NewClient()
c.SyncCluster()
// Test Set
@ -126,7 +126,7 @@ func TestSimpleMultiNode(t *testing.T) {
time.Sleep(time.Second)
c := etcd.CreateClient()
c := etcd.NewClient()
c.SyncCluster()
@ -171,7 +171,7 @@ func TestMultiNodeRecovery(t *testing.T) {
time.Sleep(2 * time.Second)
c := etcd.CreateClient()
c := etcd.NewClient()
c.SyncCluster()

View File

@ -22,7 +22,7 @@ func set(stop chan bool) {
stopSet := false
i := 0
c := etcd.CreateClient()
c := etcd.NewClient()
for {
key := fmt.Sprintf("%s_%v", "foo", i)