]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: test both texta and textb values, not texta twice
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 19 Dec 2011 06:31:20 +0000 (17:31 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 19 Dec 2011 06:31:20 +0000 (17:31 +1100)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5489082

src/pkg/net/http/request_test.go

index 714cb64f47f1b64ff3db51f310a97a053748dfea..2a9c7ea28b23448e3ad758789d6d9312e9844af4 100644 (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)