Browse Source

client: clean up style of TestMembersAPIActionList

Brian Waldon 11 years ago
parent
commit
5264c05ddb
1 changed files with 4 additions and 3 deletions
  1. 4 3
      client/members_test.go

+ 4 - 3
client/members_test.go

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