Skip to content

Commit

Permalink
fix(tests): syntax error and shadowed declaration in service list test
Browse files Browse the repository at this point in the history
  • Loading branch information
prbn021 committed Oct 9, 2024
1 parent 5f90c74 commit 31fd18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsuru/client/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ func (s *S) TestServiceListWithTags(c *check.C) {
trans := cmdtest.ConditionalTransport{
Transport: cmdtest.Transport{Message: string(output), Status: http.StatusOK},
CondFunc: func(req *http.Request) bool {
err := req.ParseForm()
err = req.ParseForm()
c.Assert(err, check.IsNil)

tags := req.Form["tag"]
c.Assert(tags, check.DeepEquals, []string{"tag1", "--tag"})
c.Assert(tags, check.DeepEquals, []string{"tag1", "tag2"})

return strings.HasSuffix(req.URL.Path, "/services/instances")
},
Expand Down

0 comments on commit 31fd18b

Please sign in to comment.