aboutsummaryrefslogtreecommitdiff
path: root/src/net/server_test.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2015-05-01 12:38:42 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2015-05-06 09:25:08 +0000
commitf77e10fb2e1cb79b27727908fa081c890ecf118f (patch)
treec77dc4c460670fdd1644be8c58d6bd8136a291a7 /src/net/server_test.go
parent9b184fd23c47a8eae3587b247d05b25f8cab04ed (diff)
downloadgo-f77e10fb2e1cb79b27727908fa081c890ecf118f.tar.xz
net: simplify error messages in tests
This change simplifies unnecessarily redundant error messages in tests. There's no need to worry any more because package APIs now return consistent, self-descriptive error values. Alos renames ambiguous test functions and makes use of test tables. Change-Id: I7b61027607c4ae2a3cf605d08d58cf449fa27eb2 Reviewed-on: https://go-review.googlesource.com/9662 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
Diffstat (limited to 'src/net/server_test.go')
-rw-r--r--src/net/server_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/server_test.go b/src/net/server_test.go
index 140716598d..fe0006b11f 100644
--- a/src/net/server_test.go
+++ b/src/net/server_test.go
@@ -55,7 +55,7 @@ func TestTCPServer(t *testing.T) {
for i, tt := range tcpServerTests {
if !testableListenArgs(tt.snet, tt.saddr, tt.taddr) {
- t.Logf("skipping %s test", tt.snet+":"+tt.saddr+"->"+tt.taddr)
+ t.Logf("skipping %s test", tt.snet+" "+tt.saddr+"->"+tt.taddr)
continue
}
@@ -139,7 +139,7 @@ func TestUnixAndUnixpacketServer(t *testing.T) {
for i, tt := range unixAndUnixpacketServerTests {
if !testableListenArgs(tt.network, tt.address, "") {
- t.Logf("skipping %s test", tt.network+":"+tt.address+"->")
+ t.Logf("skipping %s test", tt.network+" "+tt.address)
continue
}
@@ -251,7 +251,7 @@ var udpServerTests = []struct {
func TestUDPServer(t *testing.T) {
for i, tt := range udpServerTests {
if !testableListenArgs(tt.snet, tt.saddr, tt.taddr) {
- t.Logf("skipping %s test", tt.snet+":"+tt.saddr+"->"+tt.taddr)
+ t.Logf("skipping %s test", tt.snet+" "+tt.saddr+"->"+tt.taddr)
continue
}
@@ -329,7 +329,7 @@ var unixgramServerTests = []struct {
func TestUnixgramServer(t *testing.T) {
for i, tt := range unixgramServerTests {
if !testableListenArgs("unixgram", tt.saddr, "") {
- t.Logf("skipping %s test", "unixgram:"+tt.saddr+"->"+tt.caddr)
+ t.Logf("skipping %s test", "unixgram "+tt.saddr+"->"+tt.caddr)
continue
}