Adjust current implementation to accomodate content-type and test to check it

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-10-03 20:56:53 +02:00
parent 4357b1ad20
commit 2d712d39dc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func TestRemoveRouteExistent(t *testing.T) {
)
defer gock.Off()
gock.New(host).Delete("/routes/" + routeID).Reply(http.StatusNoContent)
gock.New(host).Delete("/routes/" + routeID).MatchType("json").Reply(http.StatusNoContent)
err := RemoveRoute(host, routeID)
if err != nil {