client: clean up style of TestMembersAPIActionList

This commit is contained in:
Brian Waldon 2014-10-29 16:14:49 -07:00
parent 4e759b46ce
commit 5264c05ddb

View File

@ -24,19 +24,20 @@ import (
"github.com/coreos/etcd/pkg/types"
)
func TestMembersAPIListAction(t *testing.T) {
func TestMembersAPIActionList(t *testing.T) {
ep := url.URL{Scheme: "http", Host: "example.com/v2/members"}
act := &membersAPIActionList{}
wantURL := &url.URL{
Scheme: "http",
Host: "example.com",
Path: "/v2/members",
}
act := &membersAPIActionList{}
got := *act.httpRequest(ep)
err := assertResponse(got, wantURL, http.Header{}, nil)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
}