Commit 8727b11d authored by Mikio Hara's avatar Mikio Hara

net: consistent log format in test

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5545062
parent cdf76540
...@@ -91,7 +91,7 @@ func connect(t *testing.T, network, addr string, isEmpty bool) { ...@@ -91,7 +91,7 @@ func connect(t *testing.T, network, addr string, isEmpty bool) {
} }
func doTest(t *testing.T, network, listenaddr, dialaddr string) { func doTest(t *testing.T, network, listenaddr, dialaddr string) {
t.Logf("Test %q %q %q\n", network, listenaddr, dialaddr) t.Logf("Test %q %q %q", network, listenaddr, dialaddr)
switch listenaddr { switch listenaddr {
case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]": case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]":
if testing.Short() || avoidMacFirewall { if testing.Short() || avoidMacFirewall {
...@@ -194,7 +194,7 @@ Run: ...@@ -194,7 +194,7 @@ Run:
} }
func doTestPacket(t *testing.T, network, listenaddr, dialaddr string, isEmpty bool) { func doTestPacket(t *testing.T, network, listenaddr, dialaddr string, isEmpty bool) {
t.Logf("TestPacket %s %s %s\n", network, listenaddr, dialaddr) t.Logf("TestPacket %q %q %q", network, listenaddr, dialaddr)
listening := make(chan string) listening := make(chan string)
done := make(chan int) done := make(chan int)
if network == "udp" { if network == "udp" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment