mirror of
https://github.com/golang/go
synced 2024-11-22 05:14:40 -07:00
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:
parent
c4227f5bb0
commit
10e43384f3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user