]> Cypherpunks repositories - gostls13.git/commitdiff
tls: fix argument mistake in Error call.
authorRob Pike <r@golang.org>
Fri, 17 Dec 2010 21:47:52 +0000 (13:47 -0800)
committerRob Pike <r@golang.org>
Fri, 17 Dec 2010 21:47:52 +0000 (13:47 -0800)
R=agl, agl1, rsc
CC=golang-dev
https://golang.org/cl/3753041

src/pkg/crypto/tls/conn_test.go

index ee654ca88839caa8bb7079cbd704f163dca9cf49..f44a50bedde5586109706f498e434323da21918d 100644 (file)
@@ -43,7 +43,7 @@ func TestRemovePadding(t *testing.T) {
                        expectedGood = 0
                }
                if good != expectedGood {
-                       t.Errorf("#%d: wrong validity, want:%d got:%d", expectedGood, good)
+                       t.Errorf("#%d: wrong validity, want:%d got:%d", i, expectedGood, good)
                }
                if good == 255 && len(payload) != test.expectedLen {
                        t.Errorf("#%d: got %d, want %d", i, len(payload), test.expectedLen)