diff --git a/net/conn/conn_test.go b/net/conn/conn_test.go index c180f3238..47b03475c 100644 --- a/net/conn/conn_test.go +++ b/net/conn/conn_test.go @@ -1,7 +1,6 @@ package swarm import ( - "fmt" "net" "testing" @@ -31,7 +30,7 @@ func echoListen(listener *net.TCPListener) { for { c, err := listener.Accept() if err == nil { - fmt.Println("accepeted") + // fmt.Println("accepeted") go echo(c) } } @@ -42,15 +41,15 @@ func echo(c net.Conn) { data := make([]byte, 1024) i, err := c.Read(data) if err != nil { - fmt.Printf("error %v\n", err) + // fmt.Printf("error %v\n", err) return } _, err = c.Write(data[:i]) if err != nil { - fmt.Printf("error %v\n", err) + // fmt.Printf("error %v\n", err) return } - fmt.Println("echoing", data[:i]) + // fmt.Println("echoing", data[:i]) } } @@ -72,11 +71,11 @@ func TestDial(t *testing.T) { t.Fatal("error dialing peer", err) } - fmt.Println("sending") + // fmt.Println("sending") c.Outgoing.MsgChan <- []byte("beep") c.Outgoing.MsgChan <- []byte("boop") out := <-c.Incoming.MsgChan - fmt.Println("recving", string(out)) + // fmt.Println("recving", string(out)) if string(out) != "beep" { t.Error("unexpected conn output") } @@ -86,7 +85,7 @@ func TestDial(t *testing.T) { t.Error("unexpected conn output") } - fmt.Println("closing") + // fmt.Println("closing") c.Close() listener.Close() }