diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-18 14:00:24 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-18 14:00:24 +0200 |
commit | 86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba (patch) | |
tree | db5dad799f8214a9619061a94c567387b65eb213 /client_timing_test.go | |
parent | Added Response.SetStatusCode (diff) | |
download | fasthttp-86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba.tar.gz fasthttp-86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba.tar.bz2 fasthttp-86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba.zip |
Hide Respone and Request body behind Body accessors
Diffstat (limited to 'client_timing_test.go')
-rw-r--r-- | client_timing_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client_timing_test.go b/client_timing_test.go index c1a7273..ad96698 100644 --- a/client_timing_test.go +++ b/client_timing_test.go @@ -90,8 +90,8 @@ func BenchmarkClientGetFastServer(b *testing.B) { if resp.Header.StatusCode != StatusOK { b.Fatalf("unexpected status code: %d", resp.Header.StatusCode) } - if !bytes.Equal(resp.Body, body) { - b.Fatalf("unexpected response body: %q. Expected %q", resp.Body, body) + if !bytes.Equal(resp.Body(), body) { + b.Fatalf("unexpected response body: %q. Expected %q", resp.Body(), body) } } }) |