]> Cypherpunks repositories - gostls13.git/commitdiff
websocket: fix incorrect prints found by govet
authorRobert Hencke <robert.hencke@gmail.com>
Mon, 5 Sep 2011 00:56:39 +0000 (10:56 +1000)
committerDavid Symonds <dsymonds@golang.org>
Mon, 5 Sep 2011 00:56:39 +0000 (10:56 +1000)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4963059

src/pkg/websocket/websocket_test.go

index 2e1170918df28746a6f0db59dee215e90082cd18..058f38ce02e5532998155ce242ab1b4172e1b941 100644 (file)
@@ -110,7 +110,7 @@ func TestCount(t *testing.T) {
                t.Errorf("Read: %v", err)
        }
        if count.N != 1 {
-               t.Errorf("count: expected 1 got %q", 1, count.N)
+               t.Errorf("count: expected %d got %d", 1, count.N)
        }
        if count.S != "hello" {
                t.Errorf("count: expected %q got %q", "hello", count.S)
@@ -122,7 +122,7 @@ func TestCount(t *testing.T) {
                t.Errorf("Read: %v", err)
        }
        if count.N != 2 {
-               t.Errorf("count: expected 1 got %q", 2, count.N)
+               t.Errorf("count: expected %d got %d", 2, count.N)
        }
        if count.S != "hellohello" {
                t.Errorf("count: expected %q got %q", "hellohello", count.S)