aboutsummaryrefslogtreecommitdiff
path: root/response_test.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-24 08:43:57 -0500
committerAdnan Maolood <[email protected]>2021-02-24 08:43:57 -0500
commit3101856afad716134fe37ec6fdb5d82a5a1c8353 (patch)
treed1f6773a47514c3920a0fe1f94638129a63404df /response_test.go
parentserver: Fix comment (diff)
downloadgo-gemini-3101856afad716134fe37ec6fdb5d82a5a1c8353.tar.xz
go-gemini-3101856afad716134fe37ec6fdb5d82a5a1c8353.zip
response: Move to methods
Diffstat (limited to 'response_test.go')
-rw-r--r--response_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/response_test.go b/response_test.go
index c27efc0..5e3e4d2 100644
--- a/response_test.go
+++ b/response_test.go
@@ -91,11 +91,11 @@ 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)
body := string(b)