mirror of
https://github.com/golang/go
synced 2024-11-22 03:14:41 -07:00
websocket: fix incorrect prints found by govet
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4963059
This commit is contained in:
parent
8ede0a67a2
commit
1f523e2579
@ -110,7 +110,7 @@ func TestCount(t *testing.T) {
|
|||||||
t.Errorf("Read: %v", err)
|
t.Errorf("Read: %v", err)
|
||||||
}
|
}
|
||||||
if count.N != 1 {
|
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" {
|
if count.S != "hello" {
|
||||||
t.Errorf("count: expected %q got %q", "hello", count.S)
|
t.Errorf("count: expected %q got %q", "hello", count.S)
|
||||||
@ -122,7 +122,7 @@ func TestCount(t *testing.T) {
|
|||||||
t.Errorf("Read: %v", err)
|
t.Errorf("Read: %v", err)
|
||||||
}
|
}
|
||||||
if count.N != 2 {
|
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" {
|
if count.S != "hellohello" {
|
||||||
t.Errorf("count: expected %q got %q", "hellohello", count.S)
|
t.Errorf("count: expected %q got %q", "hellohello", count.S)
|
||||||
|
Loading…
Reference in New Issue
Block a user