diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-19 11:39:20 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-19 11:39:20 +0200 |
commit | a2601c68af38a7fce740bc9771cb92376340cb5b (patch) | |
tree | 5c868b184cbaac26905db28d718a715bd6137665 /client_timing_test.go | |
parent | API consistency: Clear -> Reset to be consistent with standard go packages (diff) | |
download | fasthttp-a2601c68af38a7fce740bc9771cb92376340cb5b.tar.gz fasthttp-a2601c68af38a7fce740bc9771cb92376340cb5b.tar.bz2 fasthttp-a2601c68af38a7fce740bc9771cb92376340cb5b.zip |
API consistency change - make Response.StatusCode accessor
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 ad96698..3166600 100644 --- a/client_timing_test.go +++ b/client_timing_test.go @@ -87,8 +87,8 @@ func BenchmarkClientGetFastServer(b *testing.B) { if err := c.Do(&req, &resp); err != nil { b.Fatalf("unexpected error: %s", err) } - if resp.Header.StatusCode != StatusOK { - b.Fatalf("unexpected status code: %d", resp.Header.StatusCode) + 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) |