summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug243.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug243.go')
-rw-r--r--test/fixedbugs/bug243.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/fixedbugs/bug243.go b/test/fixedbugs/bug243.go
index 30dbc4ed4..236c14402 100644
--- a/test/fixedbugs/bug243.go
+++ b/test/fixedbugs/bug243.go
@@ -1,4 +1,3 @@
-// [ $GOOS != nacl ] || exit 0 # no network
// $G $D/$F.go && $L $F.$A && ./$A.out
// Copyright 2010 The Go Authors. All rights reserved.
@@ -8,22 +7,19 @@
package main
import (
- "fmt"
"net"
- "os"
)
func main() {
- os.Stdout.Close()
var listen, _ = net.Listen("tcp", "127.0.0.1:0")
go func() {
for {
var conn, _ = listen.Accept()
- fmt.Println("[SERVER] ", conn)
+ _ = conn
}
}()
var conn, _ = net.Dial("tcp", "", listen.Addr().String())
- fmt.Println("[CLIENT] ", conn)
+ _ = conn
}