diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-10-02 14:23:40 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-10-02 14:23:56 -0600 |
commit | 25d2b4bf2927bf69ddce582d33339ef7d13cb6bf (patch) | |
tree | 7741803a180bb85eefdb6861c1fd69e2b10b6a85 /caddytest/caddytest.go | |
parent | 023d702f30d0b7ccc039f2c96ca369def3acb41b (diff) |
map: Reimplement; multiple outputs; optimize
Diffstat (limited to 'caddytest/caddytest.go')
-rw-r--r-- | caddytest/caddytest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go index 1dda345..85a6373 100644 --- a/caddytest/caddytest.go +++ b/caddytest/caddytest.go @@ -430,7 +430,7 @@ func (tc *Tester) AssertResponse(req *http.Request, expectedStatusCode int, expe body := string(bytes) - if !strings.Contains(body, expectedBody) { + if body != expectedBody { tc.t.Errorf("requesting \"%s\" expected response body \"%s\" but got \"%s\"", req.RequestURI, expectedBody, body) } |