]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: use t.Fatalf rather than t.Fatal in cookie_test.go
authorGuobiao Mei <meiguobiao@gmail.com>
Sat, 27 Dec 2014 23:28:07 +0000 (18:28 -0500)
committerMinux Ma <minux@golang.org>
Sat, 27 Dec 2014 23:52:37 +0000 (23:52 +0000)
Change-Id: I60bbb7deb7462d1ca884677b4f86bd54b20b3f35
Reviewed-on: https://go-review.googlesource.com/2140
Reviewed-by: Minux Ma <minux@golang.org>
src/net/http/cookie_test.go

index 98dc2fade0d9d438ac681ffb576267574d223b3d..1ec993e935140b613761818c5ff8ec5b6a2c4c4c 100644 (file)
@@ -349,7 +349,7 @@ func TestSetCookieDoubleQuotes(t *testing.T) {
                {Name: "quoted3", Value: "both"},
        }
        if len(got) != len(want) {
-               t.Fatal("got %d cookies, want %d", len(got), len(want))
+               t.Fatalf("got %d cookies, want %d", len(got), len(want))
        }
        for i, w := range want {
                g := got[i]