Browse Source

rafthttp: fix gofmt issues with go tip

Gyu-Ho Lee 9 years ago
parent
commit
0626ee048e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      rafthttp/urlpick_test.go

+ 4 - 4
rafthttp/urlpick_test.go

@@ -28,8 +28,8 @@ func TestURLPickerPickTwice(t *testing.T) {
 
 	u := picker.pick()
 	urlmap := map[url.URL]bool{
-		url.URL{Scheme: "http", Host: "127.0.0.1:2380"}: true,
-		url.URL{Scheme: "http", Host: "127.0.0.1:7001"}: true,
+		{Scheme: "http", Host: "127.0.0.1:2380"}: true,
+		{Scheme: "http", Host: "127.0.0.1:7001"}: true,
 	}
 	if !urlmap[u] {
 		t.Errorf("url picked = %+v, want a possible url in %+v", u, urlmap)
@@ -48,8 +48,8 @@ func TestURLPickerUpdate(t *testing.T) {
 
 	u := picker.pick()
 	urlmap := map[url.URL]bool{
-		url.URL{Scheme: "http", Host: "localhost:2380"}: true,
-		url.URL{Scheme: "http", Host: "localhost:7001"}: true,
+		{Scheme: "http", Host: "localhost:2380"}: true,
+		{Scheme: "http", Host: "localhost:7001"}: true,
 	}
 	if !urlmap[u] {
 		t.Errorf("url picked = %+v, want a possible url in %+v", u, urlmap)