Don't set MatchType to json in gock for requests without body
This commit is contained in:
@@ -19,7 +19,6 @@ func TestListRoutesEmpty(t *testing.T) {
|
||||
defer gock.Off()
|
||||
gock.New(host).
|
||||
Get("/routes").
|
||||
MatchType("json").
|
||||
Reply(http.StatusOK)
|
||||
|
||||
err := ListRoutes(host, nil)
|
||||
@@ -36,7 +35,6 @@ func TestListRoutesSome(t *testing.T) {
|
||||
defer gock.Off()
|
||||
gock.New(host).
|
||||
Get("/routes").
|
||||
MatchType("json").
|
||||
Reply(http.StatusOK).
|
||||
BodyString(want)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user