net/http: test both texta and textb values, not texta twice

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5489082
This commit is contained in:
Alex Brainman 2011-12-19 17:31:20 +11:00
parent c4227f5bb0
commit 10e43384f3

View File

@ -202,8 +202,8 @@ func validateTestMultipartContents(t *testing.T, req *Request, allMem bool) {
if g, e := req.FormValue("texta"), textaValue; g != e {
t.Errorf("texta value = %q, want %q", g, e)
}
if g, e := req.FormValue("texta"), textaValue; g != e {
t.Errorf("texta value = %q, want %q", g, e)
if g, e := req.FormValue("textb"), textbValue; g != e {
t.Errorf("textb value = %q, want %q", g, e)
}
if g := req.FormValue("missing"); g != "" {
t.Errorf("missing value = %q, want empty string", g)