From c65d2ac54833f120920c2c8d90d4226df5e86eb1 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 3 Oct 2019 22:50:42 +0200 Subject: [PATCH] Don't set MatchType to json in gock for requests without body --- internal/client/route_list_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/client/route_list_test.go b/internal/client/route_list_test.go index 64ff441..c08e9fd 100644 --- a/internal/client/route_list_test.go +++ b/internal/client/route_list_test.go @@ -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)