Skip to content

Commit

Permalink
trivial: Address recent lint issues
Browse files Browse the repository at this point in the history
We really need to run golangci-lint in the gate but fix these issues for
now.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Jul 17, 2024
1 parent 8eddee4 commit 51f8f28
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ func TestList(t *testing.T) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)

r.ParseForm()
if err := r.ParseForm(); err != nil {
t.Errorf("Failed to parse request form %v", err)
}
th.AssertDeepEquals(t, r.Form["fields"], fields)
th.AssertDeepEquals(t, r.Form["project_id"], filterProjectID)

Expand Down Expand Up @@ -177,7 +179,9 @@ func TestListNetworkAssociations(t *testing.T) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)

r.ParseForm()
if err := r.ParseForm(); err != nil {
t.Errorf("Failed to parse request form %v", err)
}
th.AssertDeepEquals(t, fields, r.Form["fields"])

w.Header().Add("Content-Type", "application/json")
Expand Down Expand Up @@ -278,7 +282,9 @@ func TestListRouterAssociations(t *testing.T) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)

r.ParseForm()
if err := r.ParseForm(); err != nil {
t.Errorf("Failed to parse request form %v", err)
}
th.AssertDeepEquals(t, fields, r.Form["fields"])

w.Header().Add("Content-Type", "application/json")
Expand Down Expand Up @@ -404,7 +410,9 @@ func TestListPortAssociations(t *testing.T) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)

r.ParseForm()
if err := r.ParseForm(); err != nil {
t.Errorf("Failed to parse request form %v", err)
}
th.AssertDeepEquals(t, fields, r.Form["fields"])

w.Header().Add("Content-Type", "application/json")
Expand Down

0 comments on commit 51f8f28

Please sign in to comment.