Browse Source

CreateClient->NewClient

Xiang Li 12 years ago
parent
commit
3683992183
2 changed files with 5 additions and 5 deletions
  1. 4 4
      etcd_test.go
  2. 1 1
      test.go

+ 4 - 4
etcd_test.go

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

+ 1 - 1
test.go

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