rafthttp: fix gofmt issues with go tip

release-3.1
Gyu-Ho Lee 2016-10-20 16:32:56 -07:00
parent 46716fe9fb
commit 0626ee048e
1 changed files with 4 additions and 4 deletions

View File

@ -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)