This reverts commit 1a43b8334a.

pull/963/head
Boyan 2020-06-03 19:56:02 +10:00 committed by Boyan Soubachov
parent 303198d014
commit 46420cf544
1 changed files with 0 additions and 5 deletions

View File

@ -167,7 +167,6 @@ 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, nil, "world"))
}
func TestHttpBodyWrappers(t *testing.T) {
@ -181,10 +180,6 @@ func TestHttpBodyWrappers(t *testing.T) {
assert.False(mockAssert.HTTPBodyNotContains(httpGetHelloNameHandler, "GET", "/", url.Values{"name": []string{"World"}}, nil, "Hello, World!"))
assert.False(mockAssert.HTTPBodyNotContains(httpGetHelloNameHandler, "GET", "/", url.Values{"name": []string{"World"}}, nil, "World"))
assert.True(mockAssert.HTTPBodyNotContains(httpGetHelloNameHandler, "GET", "/", url.Values{"name": []string{"World"}}, nil, "world"))
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, nil, "world"))
}
func httpGetHelloNameHandler(w http.ResponseWriter, r *http.Request) {