Don't set MatchType to json in gock for requests without body

This commit is contained in:
pancho horrillo
2019-10-03 22:50:42 +02:00
parent c01c3db4f9
commit c65d2ac548
-2
View File
@@ -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)