@@ -3,12 +3,6 @@ package docker
33import (
44 "bufio"
55 "fmt"
6- "github.com/dotcloud/docker/api/client"
7- "github.com/dotcloud/docker/daemon"
8- "github.com/dotcloud/docker/engine"
9- "github.com/dotcloud/docker/image"
10- "github.com/dotcloud/docker/pkg/term"
11- "github.com/dotcloud/docker/utils"
126 "io"
137 "io/ioutil"
148 "os"
@@ -19,6 +13,13 @@ import (
1913 "syscall"
2014 "testing"
2115 "time"
16+
17+ "github.com/dotcloud/docker/api/client"
18+ "github.com/dotcloud/docker/daemon"
19+ "github.com/dotcloud/docker/engine"
20+ "github.com/dotcloud/docker/image"
21+ "github.com/dotcloud/docker/pkg/term"
22+ "github.com/dotcloud/docker/utils"
2223)
2324
2425func closeWrap (args ... io.Closer ) error {
@@ -1163,27 +1164,3 @@ func TestCmdKill(t *testing.T) {
11631164
11641165 closeWrap (stdin , stdinPipe , stdout , stdoutPipe )
11651166}
1166-
1167- func TestRunTTYCommitRun (t * testing.T ) {
1168- cli := api .NewDockerCli (nil , ioutil .Discard , ioutil .Discard , testDaemonProto , testDaemonAddr , nil )
1169-
1170- defer cleanup (globalEngine , t )
1171-
1172- ch := make (chan struct {})
1173- go func () {
1174- defer close (ch )
1175- cli .CmdRun ("-t" , unitTestImageID , "/bin/ls" )
1176- }()
1177-
1178- container := waitContainerStart (t , 10 * time .Second )
1179- time .Sleep (500 * time .Millisecond )
1180- setTimeout (t , "Waiting for container timedout" , 5 * time .Second , func () {
1181- <- ch
1182- })
1183-
1184- cli .CmdCommit (container .ID , "ttytest" )
1185-
1186- if err := cli .CmdRun ("ttytest" , "/bin/ls" ); err != nil {
1187- t .Fatal (err )
1188- }
1189- }
0 commit comments