]> Cypherpunks repositories - gostls13.git/commitdiff
net: consistent log format in test
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 16 Jan 2012 05:57:18 +0000 (14:57 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 16 Jan 2012 05:57:18 +0000 (14:57 +0900)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5545062

src/pkg/net/server_test.go

index 5475d3874fe6f1e8fe12c29f4d41e68bc150d428..29d2532a1ed36d022127d9d47bc9c76300cbe6ba 100644 (file)
@@ -91,7 +91,7 @@ func connect(t *testing.T, network, addr string, isEmpty bool) {
 }
 
 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 {
        case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]":
                if testing.Short() || avoidMacFirewall {
@@ -194,7 +194,7 @@ Run:
 }
 
 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)
        done := make(chan int)
        if network == "udp" {