*: test gofmt with -s and fix reported issues

This commit is contained in:
Xiang Li
2015-08-21 18:52:16 -07:00
parent 1dcc145aef
commit 6b23a8131f
35 changed files with 266 additions and 266 deletions

View File

@@ -141,7 +141,7 @@ func TestURLsFromFlags(t *testing.T) {
args: []string{},
tlsInfo: transport.TLSInfo{},
wantURLs: []url.URL{
url.URL{Scheme: "http", Host: "127.0.0.1:2379"},
{Scheme: "http", Host: "127.0.0.1:2379"},
},
wantFail: false,
},
@@ -151,8 +151,8 @@ func TestURLsFromFlags(t *testing.T) {
args: []string{"-urls=https://192.0.3.17:2930,http://127.0.0.1:1024"},
tlsInfo: transport.TLSInfo{},
wantURLs: []url.URL{
url.URL{Scheme: "http", Host: "127.0.0.1:1024"},
url.URL{Scheme: "https", Host: "192.0.3.17:2930"},
{Scheme: "http", Host: "127.0.0.1:1024"},
{Scheme: "https", Host: "192.0.3.17:2930"},
},
wantFail: false,
},
@@ -162,7 +162,7 @@ func TestURLsFromFlags(t *testing.T) {
args: []string{"-addr=192.0.2.3:1024"},
tlsInfo: transport.TLSInfo{},
wantURLs: []url.URL{
url.URL{Scheme: "http", Host: "192.0.2.3:1024"},
{Scheme: "http", Host: "192.0.2.3:1024"},
},
wantFail: false,
},
@@ -175,7 +175,7 @@ func TestURLsFromFlags(t *testing.T) {
KeyFile: "/tmp/bar",
},
wantURLs: []url.URL{
url.URL{Scheme: "https", Host: "192.0.2.3:1024"},
{Scheme: "https", Host: "192.0.2.3:1024"},
},
wantFail: false,
},