mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove log
This commit is contained in:
parent
0e021ed470
commit
acc2aec988
3 changed files with 2 additions and 9 deletions
|
@ -1593,7 +1593,6 @@ func TestMultipleVolumesFrom(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
t.Log(container3.Volumes)
|
||||
if container3.Volumes["/test"] != container.Volumes["/test"] {
|
||||
t.Fail()
|
||||
}
|
||||
|
|
|
@ -44,7 +44,6 @@ func NewEchoServer(t *testing.T, proto, address string) EchoServer {
|
|||
}
|
||||
server = &UDPEchoServer{conn: socket, testCtx: t}
|
||||
}
|
||||
t.Logf("EchoServer listening on %v/%v\n", proto, server.LocalAddr().String())
|
||||
return server
|
||||
}
|
||||
|
||||
|
@ -56,10 +55,7 @@ func (server *TCPEchoServer) Run() {
|
|||
return
|
||||
}
|
||||
go func(client net.Conn) {
|
||||
server.testCtx.Logf("TCP client accepted on the EchoServer\n")
|
||||
written, err := io.Copy(client, client)
|
||||
server.testCtx.Logf("%v bytes echoed back to the client\n", written)
|
||||
if err != nil {
|
||||
if _, err := io.Copy(client, client); err != nil {
|
||||
server.testCtx.Logf("can't echo to the client: %v\n", err.Error())
|
||||
}
|
||||
client.Close()
|
||||
|
@ -79,7 +75,6 @@ func (server *UDPEchoServer) Run() {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
server.testCtx.Logf("Writing UDP datagram back")
|
||||
for i := 0; i != read; {
|
||||
written, err := server.conn.WriteTo(readBuf[i:read], from)
|
||||
if err != nil {
|
||||
|
|
|
@ -340,7 +340,6 @@ func startEchoServerContainer(t *testing.T, proto string) (*Runtime, *Container,
|
|||
} else {
|
||||
t.Fatal(fmt.Errorf("Unknown protocol %v", proto))
|
||||
}
|
||||
t.Log("Trying port", strPort)
|
||||
container, err = runtime.Create(&Config{
|
||||
Image: GetTestImage(runtime).ID,
|
||||
Cmd: []string{"sh", "-c", cmd},
|
||||
|
@ -353,7 +352,7 @@ func startEchoServerContainer(t *testing.T, proto string) (*Runtime, *Container,
|
|||
nuke(runtime)
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue