summaryrefslogtreecommitdiff
path: root/libgo/go/http/request_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/http/request_test.go')
-rw-r--r--libgo/go/http/request_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/http/request_test.go b/libgo/go/http/request_test.go
index 175d6f170b8..9be9efcc87d 100644
--- a/libgo/go/http/request_test.go
+++ b/libgo/go/http/request_test.go
@@ -49,7 +49,7 @@ func TestPostQuery(t *testing.T) {
type stringMap map[string][]string
type parseContentTypeTest struct {
contentType stringMap
- error bool
+ err bool
}
var parseContentTypeTests = []parseContentTypeTest{
@@ -58,7 +58,7 @@ var parseContentTypeTests = []parseContentTypeTest{
{contentType: stringMap{"Content-Type": {"text/plain; boundary="}}},
{
contentType: stringMap{"Content-Type": {"application/unknown"}},
- error: true,
+ err: true,
},
}
@@ -70,10 +70,10 @@ func TestPostContentTypeParsing(t *testing.T) {
Body: ioutil.NopCloser(bytes.NewBufferString("body")),
}
err := req.ParseForm()
- if !test.error && err != nil {
+ if !test.err && err != nil {
t.Errorf("test %d: Unexpected error: %v", i, err)
}
- if test.error && err == nil {
+ if test.err && err == nil {
t.Errorf("test %d should have returned error", i)
}
}