From 303198d014417e0105e8a2f3acb770de4441bd93 Mon Sep 17 00:00:00 2001 From: Boyan Date: Wed, 3 Jun 2020 19:55:08 +1000 Subject: [PATCH] Revert "allow body for HTTPBodyContains and HTTPBodyNotContains for POST" PR #938 This reverts commit 136026fb259a9c69ea2655a0f83500d50713ccf8. --- assert/http_assertions_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assert/http_assertions_test.go b/assert/http_assertions_test.go index a898968..665ecf4 100644 --- a/assert/http_assertions_test.go +++ b/assert/http_assertions_test.go @@ -167,7 +167,7 @@ func TestHttpBody(t *testing.T) { body := strings.NewReader("I will get this request body back as response!!") assert.True(HTTPBodyContains(mockT, httpPostHandler, "POST", "/", nil, body, "I will get this request body back as response!!")) - assert.True(HTTPBodyNotContains(mockT, httpPostHandler, "POST", "/", nil, body, "world")) + assert.True(HTTPBodyNotContains(mockT, httpPostHandler, "POST", "/", nil, nil, "world")) } func TestHttpBodyWrappers(t *testing.T) { @@ -184,7 +184,7 @@ func TestHttpBodyWrappers(t *testing.T) { body := strings.NewReader("I will get this request body back as response!!") assert.True(mockAssert.HTTPBodyContains(httpPostHandler, "POST", "/", nil, body, "I will get this request body back as response!!")) - assert.True(mockAssert.HTTPBodyNotContains(httpPostHandler, "POST", "/", nil, body, "world")) + assert.True(mockAssert.HTTPBodyNotContains(httpPostHandler, "POST", "/", nil, nil, "world")) } func httpGetHelloNameHandler(w http.ResponseWriter, r *http.Request) {