websocket: fix incorrect prints found by govet

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4963059
This commit is contained in:
Robert Hencke 2011-09-05 10:56:39 +10:00 committed by David Symonds
parent 8ede0a67a2
commit 1f523e2579

View 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)