diff options
| author | Adnan Maolood <[email protected]> | 2021-02-24 18:50:39 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-24 18:50:40 -0500 |
| commit | 1bc5c68c3f4683d4a6ebe1844e57b8734e893dd7 (patch) | |
| tree | a73580b313573eead92a2e81652da3049c123835 /response_test.go | |
| parent | examples/client: Fix display of response status (diff) | |
| download | go-gemini-1bc5c68c3f4683d4a6ebe1844e57b8734e893dd7.tar.xz go-gemini-1bc5c68c3f4683d4a6ebe1844e57b8734e893dd7.zip | |
response: Revert to using fields instead of methods
Diffstat (limited to 'response_test.go')
| -rw-r--r-- | response_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/response_test.go b/response_test.go index 5e3e4d2..2de050f 100644 --- a/response_test.go +++ b/response_test.go @@ -91,13 +91,13 @@ func TestReadWriteResponse(t *testing.T) { // No response continue } - if resp.status != test.Status { - t.Errorf("expected status = %d, got %d", test.Status, resp.status) + if resp.Status != test.Status { + t.Errorf("expected status = %d, got %d", test.Status, resp.Status) } - if resp.meta != test.Meta { - t.Errorf("expected meta = %s, got %s", test.Meta, resp.meta) + if resp.Meta != test.Meta { + t.Errorf("expected meta = %s, got %s", test.Meta, resp.Meta) } - b, _ := ioutil.ReadAll(resp.body) + b, _ := ioutil.ReadAll(resp.Body) body := string(b) if body != test.Body { t.Errorf("expected body = %#v, got %#v", test.Body, body) |