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()
|
defer gock.Off()
|
||||||
gock.New(host).
|
gock.New(host).
|
||||||
Get("/routes").
|
Get("/routes").
|
||||||
MatchType("json").
|
|
||||||
Reply(http.StatusOK)
|
Reply(http.StatusOK)
|
||||||
|
|
||||||
err := ListRoutes(host, nil)
|
err := ListRoutes(host, nil)
|
||||||
@@ -36,7 +35,6 @@ func TestListRoutesSome(t *testing.T) {
|
|||||||
defer gock.Off()
|
defer gock.Off()
|
||||||
gock.New(host).
|
gock.New(host).
|
||||||
Get("/routes").
|
Get("/routes").
|
||||||
MatchType("json").
|
|
||||||
Reply(http.StatusOK).
|
Reply(http.StatusOK).
|
||||||
BodyString(want)
|
BodyString(want)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user