Skip to content

Commit 46420cf

Browse files
This reverts commit 1a43b83.
1 parent 303198d commit 46420cf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

assert/http_assertions_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ func TestHttpBody(t *testing.T) {
167167

168168
body := strings.NewReader("I will get this request body back as response!!")
169169
assert.True(HTTPBodyContains(mockT, httpPostHandler, "POST", "/", nil, body, "I will get this request body back as response!!"))
170-
assert.True(HTTPBodyNotContains(mockT, httpPostHandler, "POST", "/", nil, nil, "world"))
171170
}
172171

173172
func TestHttpBodyWrappers(t *testing.T) {
@@ -181,10 +180,6 @@ func TestHttpBodyWrappers(t *testing.T) {
181180
assert.False(mockAssert.HTTPBodyNotContains(httpGetHelloNameHandler, "GET", "/", url.Values{"name": []string{"World"}}, nil, "Hello, World!"))
182181
assert.False(mockAssert.HTTPBodyNotContains(httpGetHelloNameHandler, "GET", "/", url.Values{"name": []string{"World"}}, nil, "World"))
183182
assert.True(mockAssert.HTTPBodyNotContains(httpGetHelloNameHandler, "GET", "/", url.Values{"name": []string{"World"}}, nil, "world"))
184-
185-
body := strings.NewReader("I will get this request body back as response!!")
186-
assert.True(mockAssert.HTTPBodyContains(httpPostHandler, "POST", "/", nil, body, "I will get this request body back as response!!"))
187-
assert.True(mockAssert.HTTPBodyNotContains(httpPostHandler, "POST", "/", nil, nil, "world"))
188183
}
189184

190185
func httpGetHelloNameHandler(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)