From 1f523e2579e8e10b8d9de7f989b711f6d2ee0eb2 Mon Sep 17 00:00:00 2001 From: Robert Hencke Date: Mon, 5 Sep 2011 10:56:39 +1000 Subject: [PATCH] websocket: fix incorrect prints found by govet R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4963059 --- src/pkg/websocket/websocket_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/websocket/websocket_test.go b/src/pkg/websocket/websocket_test.go index 2e1170918df..058f38ce02e 100644 --- a/src/pkg/websocket/websocket_test.go +++ b/src/pkg/websocket/websocket_test.go @@ -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)