aboutsummaryrefslogtreecommitdiff
path: root/response_test.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-24 18:50:39 -0500
committerAdnan Maolood <[email protected]>2021-02-24 18:50:40 -0500
commit1bc5c68c3f4683d4a6ebe1844e57b8734e893dd7 (patch)
treea73580b313573eead92a2e81652da3049c123835 /response_test.go
parentexamples/client: Fix display of response status (diff)
downloadgo-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.go10
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)