remove log

Upstream-commit: acc2aec988450b117c183f35a4e743b882a55113
Component: engine
This commit is contained in:
Victor Vieux
2013-10-24 15:13:47 -07:00
parent 74017d1538
commit 264d4e8059
3 changed files with 2 additions and 9 deletions
-1
View File
@@ -1593,7 +1593,6 @@ func TestMultipleVolumesFrom(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
t.Log(container3.Volumes)
if container3.Volumes["/test"] != container.Volumes["/test"] { if container3.Volumes["/test"] != container.Volumes["/test"] {
t.Fail() t.Fail()
} }
+1 -6
View File
@@ -44,7 +44,6 @@ func NewEchoServer(t *testing.T, proto, address string) EchoServer {
} }
server = &UDPEchoServer{conn: socket, testCtx: t} server = &UDPEchoServer{conn: socket, testCtx: t}
} }
t.Logf("EchoServer listening on %v/%v\n", proto, server.LocalAddr().String())
return server return server
} }
@@ -56,10 +55,7 @@ func (server *TCPEchoServer) Run() {
return return
} }
go func(client net.Conn) { go func(client net.Conn) {
server.testCtx.Logf("TCP client accepted on the EchoServer\n") if _, err := io.Copy(client, client); err != nil {
written, err := io.Copy(client, client)
server.testCtx.Logf("%v bytes echoed back to the client\n", written)
if err != nil {
server.testCtx.Logf("can't echo to the client: %v\n", err.Error()) server.testCtx.Logf("can't echo to the client: %v\n", err.Error())
} }
client.Close() client.Close()
@@ -79,7 +75,6 @@ func (server *UDPEchoServer) Run() {
if err != nil { if err != nil {
return return
} }
server.testCtx.Logf("Writing UDP datagram back")
for i := 0; i != read; { for i := 0; i != read; {
written, err := server.conn.WriteTo(readBuf[i:read], from) written, err := server.conn.WriteTo(readBuf[i:read], from)
if err != nil { if err != nil {
+1 -2
View File
@@ -340,7 +340,6 @@ func startEchoServerContainer(t *testing.T, proto string) (*Runtime, *Container,
} else { } else {
t.Fatal(fmt.Errorf("Unknown protocol %v", proto)) t.Fatal(fmt.Errorf("Unknown protocol %v", proto))
} }
t.Log("Trying port", strPort)
container, err = runtime.Create(&Config{ container, err = runtime.Create(&Config{
Image: GetTestImage(runtime).ID, Image: GetTestImage(runtime).ID,
Cmd: []string{"sh", "-c", cmd}, Cmd: []string{"sh", "-c", cmd},
@@ -353,7 +352,7 @@ func startEchoServerContainer(t *testing.T, proto string) (*Runtime, *Container,
nuke(runtime) nuke(runtime)
t.Fatal(err) t.Fatal(err)
} }
t.Logf("Port %v already in use", strPort) t.Logf("Port %v already in use, trying another one", strPort)
} }
if err := container.Start(&HostConfig{}); err != nil { if err := container.Start(&HostConfig{}); err != nil {