@@ -167,7 +167,7 @@ func TestHttpBody(t *testing.T) {
167
167
168
168
body := strings .NewReader ("I will get this request body back as response!!" )
169
169
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 , body , "world" ))
170
+ assert .True (HTTPBodyNotContains (mockT , httpPostHandler , "POST" , "/" , nil , nil , "world" ))
171
171
}
172
172
173
173
func TestHttpBodyWrappers (t * testing.T ) {
@@ -184,7 +184,7 @@ func TestHttpBodyWrappers(t *testing.T) {
184
184
185
185
body := strings .NewReader ("I will get this request body back as response!!" )
186
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 , body , "world" ))
187
+ assert .True (mockAssert .HTTPBodyNotContains (httpPostHandler , "POST" , "/" , nil , nil , "world" ))
188
188
}
189
189
190
190
func httpGetHelloNameHandler (w http.ResponseWriter , r * http.Request ) {
0 commit comments