From 63e128670ef00cc0fb3440deaf910913b68b4d73 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Mon, 14 Oct 2013 09:55:57 -0600 Subject: [PATCH] Fix etcd.NewClient(). --- etcd_test.go | 12 ++++++------ test/test.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/etcd_test.go b/etcd_test.go index 8aaa2735d..30df557fd 100644 --- a/etcd_test.go +++ b/etcd_test.go @@ -32,7 +32,7 @@ func TestSingleNode(t *testing.T) { time.Sleep(time.Second) - c := etcd.NewClient() + c := etcd.NewClient(nil) c.SyncCluster() // Test Set @@ -145,7 +145,7 @@ func TestSingleNodeRecovery(t *testing.T) { time.Sleep(time.Second) - c := etcd.NewClient() + c := etcd.NewClient(nil) c.SyncCluster() // Test Set @@ -205,7 +205,7 @@ func templateTestSimpleMultiNode(t *testing.T, tls bool) { time.Sleep(time.Second) - c := etcd.NewClient() + c := etcd.NewClient(nil) c.SyncCluster() @@ -255,7 +255,7 @@ func TestMultiNodeKillAllAndRecovery(t *testing.T) { t.Fatal("cannot create cluster") } - c := etcd.NewClient() + c := etcd.NewClient(nil) c.SyncCluster() @@ -320,7 +320,7 @@ func TestMultiNodeKillOne(t *testing.T) { time.Sleep(2 * time.Second) - c := etcd.NewClient() + c := etcd.NewClient(nil) c.SyncCluster() @@ -481,7 +481,7 @@ func TestRemoveNode(t *testing.T) { time.Sleep(time.Second) - c := etcd.NewClient() + c := etcd.NewClient(nil) c.SyncCluster() diff --git a/test/test.go b/test/test.go index acb212d48..ea5458451 100644 --- a/test/test.go +++ b/test/test.go @@ -22,7 +22,7 @@ func Set(stop chan bool) { stopSet := false i := 0 - c := etcd.NewClient() + c := etcd.NewClient(nil) for { key := fmt.Sprintf("%s_%v", "foo", i)