mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
update TestRunDisconnectTty to reflect the correct behavior of CmdRun
This commit is contained in:
parent
0eb425426f
commit
cc5a044a8c
1 changed files with 2 additions and 5 deletions
|
@ -239,11 +239,8 @@ func TestRunDisconnectTty(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// as the pipes are close, we expect the process to die,
|
// In tty mode, we expect the process to stay alive even after client's stdin closes.
|
||||||
// therefore CmdRun to unblock. Wait for CmdRun
|
// Do not wait for run to finish
|
||||||
setTimeout(t, "Waiting for CmdRun timed out", 2*time.Second, func() {
|
|
||||||
<-c1
|
|
||||||
})
|
|
||||||
|
|
||||||
// Client disconnect after run -i should keep stdin out in TTY mode
|
// Client disconnect after run -i should keep stdin out in TTY mode
|
||||||
container := runtime.List()[0]
|
container := runtime.List()[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue